Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 29 Sep 2015 20:55:31
Message-Id: 1442883466.08cd51b1eab6c4451e3f374b6083748f7d9b4667.monsieurp@gentoo
1 commit: 08cd51b1eab6c4451e3f374b6083748f7d9b4667
2 Author: William L. Thomson Jr <wlt <AT> o-sinc <DOT> com>
3 AuthorDate: Tue Sep 22 00:51:43 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 22 00:57:46 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cd51b1
7
8 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.
9
10 eclass/java-utils-2.eclass | 9 +++++++++
11 1 file changed, 9 insertions(+)
12
13 diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
14 index 6e33311..af3c740 100644
15 --- a/eclass/java-utils-2.eclass
16 +++ b/eclass/java-utils-2.eclass
17 @@ -2824,3 +2824,12 @@ is-java-strict() {
18 [[ -n ${JAVA_PKG_STRICT} ]]
19 return $?
20 }
21 +
22 +# @FUNCTION: java-pkg_clean
23 +# @DESCRIPTION:
24 +# java package cleaner function, will remove all *.class and *.jar files
25 +# removing any bundled dependencies
26 +java-pkg_clean() {
27 + [[ -n "${JAVA_PKG_NO_CLEAN}" ]] &&
28 + find '(' -name '*.class' -o -name '*.jar' ')' -type f -delete -print || die
29 +}