mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user