]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 15 May 2023 22:47:31 +0000 (00:47 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 15 May 2023 22:54:13 +0000 (00:54 +0200)
- ANT_BIN should be executable, let's test this in .jprojects.sh
- nice messages added

.jprojects.sh
build-dist-all.sh
build-dist-cores.sh
build-dist-libs.sh
make-javadoc.sh

index a024aeb831442380ef13710c32999c5c79fdb24a..156bbd3825d226f6273602716e6174597d7fa82d 100644 (file)
@@ -58,6 +58,10 @@ if [ -z "${ANT_BIN}" ]
 then
        echo "$0: Cannot find ANT binary."
        exit 1
+elif [ ! -x "${ANT_BIN}" ]
+then
+       echo "$0: '${ANT_BIN}' is not executable!"
+       exit 1
 elif [ -z "${SCP_BIN}" ]
 then
        echo "$0: Cannot find SCP binary."
index 57775cafeb8e54053f37034fa29ac9e62c6c1480..a262c7fdfc7274bcfdbd3c857aa667c87368f90a 100755 (executable)
@@ -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
index defc3e95330816076159f0695d0c17d58c425e84..f479bf9f15331bcc55b624f2b19b1b47dbea691e 100755 (executable)
@@ -29,13 +29,13 @@ for project in ${LIST}; do
                continue
        fi
 
-       if [ -x "${ANT_BIN}" -a "$1" != "d" ]
+       if [ "$1" != "d" ]
        then
                if [ "$1" = "c" ]
                then
                        # Cleanup
                        echo "$0: Cleaning up '${project}' ..."
-                       ${ANT_BIN} clean
+                       "${ANT_BIN}" clean
                fi
 
                # Build JAR
index 0260908964e09c53f7055b06df2ae0cfe9997662..963971ec8013d2675e91d94a91b5827c14f2329b 100755 (executable)
@@ -25,21 +25,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
index 313f98558999d9787e7f94523ad7d5db59f14626..bd5c46fa2082dd6692b704de8df54fbf436e0db8 100755 (executable)
@@ -42,8 +42,14 @@ for project in ${LIST}; do
        echo "$0: Cleaning up Javadoc for '${project}' ..."
        rm -rf dist/javadoc/
 
+       if [ -f "src/.gitkeep" ]
+       then
+               echo "$0: project='${project}' has a .gitkeep file in 'src', won't scan."
+               continue
+       fi
+
        echo "$0: Generating documentation for '${project}' ..."
-       ${ANT_BIN} javadoc > dist/javadoc.log || exit 255
+       "${ANT_BIN}" javadoc > dist/javadoc.log || exit 255
        rm -fv dist/javadoc.log
 
        IS_COMPANY_PROJECT=$(echo "${COMPANY_PROJECTS}" | grep "${project}")
@@ -51,10 +57,6 @@ for project in ${LIST}; do
        then
                echo "$0: Not uploading company project='${project}'"
                continue
-       elif [ -f "src/.gitkeep" ]
-       then
-               echo "$0: project='${project}' has a .gitkeep file in 'src', won't scan."
-               continue
        fi
 
        echo "$0: Generating 'javadoc/${project}' on remote server ..."