Signed-off-by: Roland Häder <roland@mxchange.org>
if [ -x "${ANT_BIN}" -a "$1" != "d" ]
then
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="$?"
# Save status
STATUS="$?"
if [ "${STATUS}" != "0" ]
then
# This has failed, so try "dist"
if [ "${STATUS}" != "0" ]
then
# This has failed, so try "dist"
STATUS="$?"
# Still failing? Oh, to bad
STATUS="$?"
# Still failing? Oh, to bad