X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=build-dist-all.sh;h=5c2da7771a78e60d1d20e96eb0b09793849f2b76;hb=HEAD;hp=57775cafeb8e54053f37034fa29ac9e62c6c1480;hpb=1df1deea0ecb7848238af169364c13f4317bef47;p=jprojects-scripts.git diff --git a/build-dist-all.sh b/build-dist-all.sh index 57775ca..a262c7f 100755 --- a/build-dist-all.sh +++ b/build-dist-all.sh @@ -19,21 +19,23 @@ for project in ${LIST}; do echo "$0: P='${P}'" cd "${JPROJECTS_HOME}/${P}" || exit 255 - if [ ! -e "build.xml" ] + if [ ! -f "build.xml" ] then echo "$0: No build.xml found, skipping project '${P}'." continue fi - if [ -x "${ANT_BIN}" -a "$1" != "d" ] + if [ "$1" != "d" ] then if [ "$1" = "c" ] then # Cleanup - ${ANT_BIN} clean + echo "$0: Cleaning up '${project}' ..." + "${ANT_BIN}" clean fi # Build JAR + echo "$0: Building JAR for '${project}' ..." "${ANT_BIN}" jar # Save status