diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-20 14:33:56 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-20 14:33:56 +0000 |
commit | 564186683734ca85f9e4c685919a407c76151e91 (patch) | |
tree | 5a4213709c60b9d6c1e0ac4de1f7a131eb43aa49 /eclass/java-utils-2.eclass | |
parent | java-utils-2.eclass: Document JAVA_PKG_DEBUG variable. Tweak logging accordin... (diff) | |
download | gentoo-564186683734ca85f9e4c685919a407c76151e91.tar.gz gentoo-564186683734ca85f9e4c685919a407c76151e91.tar.bz2 gentoo-564186683734ca85f9e4c685919a407c76151e91.zip |
java-utils-2.eclass: Also improve java-pkg_do{javadoc,jar,src} logging.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 8914f9544adb..15e4db05992f 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -364,6 +364,15 @@ java-pkg_dojar() { fi done + # Extra logging if enabled. + if [[ -n ${JAVA_PKG_DEBUG} ]]; then + einfo "Verbose logging for \"${FUNCNAME}\" function" + einfo "Jar file(s) destination: ${JAVA_PKG_JARDEST}" + einfo "Jar file(s) created: ${@}" + einfo "Complete command:" + einfo "${FUNCNAME} ${@}" + fi + java-pkg_do_write_ } @@ -642,7 +651,6 @@ java-pkg_dojavadoc() { fi # Actual installation - java-pkg_dohtml -r "${dir_to_install}" # Let's make a symlink to the directory we have everything else under @@ -652,6 +660,15 @@ java-pkg_dojavadoc() { debug-print "symlinking ${dest}/{api,${symlink}}" dosym ${dest}/{api,${symlink}} || die fi + + # Extra logging if enabled. + if [[ -n ${JAVA_PKG_DEBUG} ]]; then + einfo "Verbose logging for \"${FUNCNAME}\" function" + einfo "Documentation destination: ${dest}" + einfo "Directory to install: ${dir_to_install}" + einfo "Complete command:" + einfo "${FUNCNAME} ${@}" + fi } # @FUNCTION: java-pkg_dosrc @@ -711,6 +728,17 @@ java-pkg_dosrc() { doins ${zip_path} || die "Failed to install source" JAVA_SOURCES="${JAVA_PKG_SOURCESPATH}/${zip_name}" + + # Extra logging if enabled. + if [[ -n ${JAVA_PKG_DEBUG} ]]; then + einfo "Verbose logging for \"${FUNCNAME}\" function" + einfo "Zip filename created: ${zip_name}" + einfo "Zip file destination: ${JAVA_PKG_SOURCESPATH}" + einfo "Directories zipped: ${@}" + einfo "Complete command:" + einfo "${FUNCNAME} ${@}" + fi + java-pkg_do_write_ } |