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 c5ae10f..5c2da77 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