summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam L. Thomson Jr <wlt@o-sinc.com>2015-09-21 20:51:43 -0400
committerWilliam L. Thomson Jr <wlt@o-sinc.com>2015-09-21 20:57:46 -0400
commit08cd51b1eab6c4451e3f374b6083748f7d9b4667 (patch)
treee0725dc4e8ea3a05f8852b523199881140b46ef6 /eclass/java-utils-2.eclass
parentdev-python/pyftpdlib: Stable for PPC64 (bug #550808). (diff)
downloadgentoo-08cd51b1eab6c4451e3f374b6083748f7d9b4667.tar.gz
gentoo-08cd51b1eab6c4451e3f374b6083748f7d9b4667.tar.bz2
gentoo-08cd51b1eab6c4451e3f374b6083748f7d9b4667.zip
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.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass9
1 files changed, 9 insertions, 0 deletions
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
+}