From: Roland Häder Date: Thu, 27 Apr 2017 11:01:32 +0000 (+0200) Subject: cleanup is now done separately and only if requested. Yes, getting messy ... X-Git-Url: https://git.mxchange.org/?p=jprojects-scripts.git;a=commitdiff_plain;h=c73c565a70f2ce1932bf4bcdbd8553ecaae36c70 cleanup is now done separately and only if requested. Yes, getting messy ... Signed-off-by: Roland Häder --- diff --git a/build-dist-all.sh b/build-dist-all.sh index c5ae10f..5c2da77 100755 --- a/build-dist-all.sh +++ b/build-dist-all.sh @@ -27,8 +27,14 @@ for project in ${LIST}; do if [ -x "${ANT_BIN}" -a "$1" != "d" ] then - # Cleanup project and build JAR - ${ANT_BIN} clean jar + if [ "$1" = "c" ] + then + # Cleanup + ${ANT_BIN} clean + fi + + # Build JAR + ${ANT_BIN} jar # Save status STATUS="$?" @@ -37,7 +43,7 @@ for project in ${LIST}; do if [ "${STATUS}" != "0" ] then # This has failed, so try "dist" - ${ANT_BIN} clean dist + ${ANT_BIN} dist STATUS="$?" # Still failing? Oh, to bad