eclass/java-utils-2: Added proposed function to remove *.class and *.jar files from sources. Long term should be called automatically all the time with optional override via JAVA_PKG_NO_CLEAN.

This commit is contained in:
William L. Thomson Jr
2015-09-21 20:57:46 -04:00
parent 9124856b39
commit 08cd51b1ea
+9
View File
@@ -2824,3 +2824,12 @@ is-java-strict() {
[[ -n ${JAVA_PKG_STRICT} ]]
return $?
}
# @FUNCTION: java-pkg_clean
# @DESCRIPTION:
# java package cleaner function, will remove all *.class and *.jar files
# removing any bundled dependencies
java-pkg_clean() {
[[ -n "${JAVA_PKG_NO_CLEAN}" ]] &&
find '(' -name '*.class' -o -name '*.jar' ')' -type f -delete -print || die
}