]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
cleanup is now done separately and only if requested. Yes, getting messy ...
authorRoland Häder <roland@mxchange.org>
Thu, 27 Apr 2017 11:01:32 +0000 (13:01 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 27 Apr 2017 11:01:32 +0000 (13:01 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
build-dist-all.sh

index c5ae10febf7425071e9b9dbf07be4e23571cca01..5c2da7771a78e60d1d20e96eb0b09793849f2b76 100755 (executable)
@@ -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