From: William L. Thomson Jr Date: Tue, 22 Sep 2015 00:51:43 +0000 (-0400) Subject: eclass/java-utils-2: Added proposed function to remove *.class and *.jar files from... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08cd51b1eab6c4451e3f374b6083748f7d9b4667;p=gentoo.git 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. --- diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index 6e333118f5bb..af3c7409b7e4 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 +}