projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9124856
)
eclass/java-utils-2: Added proposed function to remove *.class and *.jar files from...
github/pr/116
author
William L. Thomson Jr
<wlt@o-sinc.com>
Tue, 22 Sep 2015 00:51:43 +0000
(20:51 -0400)
committer
William L. Thomson Jr
<wlt@o-sinc.com>
Tue, 22 Sep 2015 00:57:46 +0000
(20:57 -0400)
eclass/java-utils-2.eclass
patch
|
blob
|
history
diff --git
a/eclass/java-utils-2.eclass
b/eclass/java-utils-2.eclass
index 6e333118f5bbaad75cfd7d953270fb1352cb1081..af3c7409b7e44507a8b0e6a9b77914c92c450606 100644
(file)
--- 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
+}