eclass/java-utils-2: Added proposed function to remove *.class and *.jar files from... github/pr/116
authorWilliam L. Thomson Jr <wlt@o-sinc.com>
Tue, 22 Sep 2015 00:51:43 +0000 (20:51 -0400)
committerWilliam L. Thomson Jr <wlt@o-sinc.com>
Tue, 22 Sep 2015 00:57:46 +0000 (20:57 -0400)
eclass/java-utils-2.eclass

index 6e333118f5bbaad75cfd7d953270fb1352cb1081..af3c7409b7e44507a8b0e6a9b77914c92c450606 100644 (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
+}