Skip to content

Commit

Permalink
java-utils-2.eclass: Fix this untested java-pkg_clean crap
Browse files Browse the repository at this point in the history
  • Loading branch information
chewi committed Oct 3, 2015
1 parent 329a13f commit a8a4bbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eclass/java-utils-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -2827,9 +2827,10 @@ is-java-strict() {

# @FUNCTION: java-pkg_clean
# @DESCRIPTION:
# java package cleaner function, will remove all *.class and *.jar files
# removing any bundled dependencies
# Java package cleaner function. This will remove all *.class and *.jar
# files, removing any bundled dependencies.
java-pkg_clean() {
[[ -n "${JAVA_PKG_NO_CLEAN}" ]] &&
if [[ -z "${JAVA_PKG_NO_CLEAN}" ]]; then
find "${@}" '(' -name '*.class' -o -name '*.jar' ')' -type f -delete -print || die
fi
}

0 comments on commit a8a4bbc

Please sign in to comment.