commit:     08cd51b1eab6c4451e3f374b6083748f7d9b4667
Author:     William L. Thomson Jr <wlt <AT> o-sinc <DOT> com>
AuthorDate: Tue Sep 22 00:51:43 2015 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 00:57:46 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cd51b1

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.

 eclass/java-utils-2.eclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 6e33311..af3c740 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -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
+}

Reply via email to