3 . ./.jprojects.sh || exit 255
5 for project in ${LIST}; do
6 if [ "${project}" = "jprojects-scripts" ]
8 echo "$0: Skipping jprojects-scripts ..."
10 elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
12 echo "$0: Project '${project}' does not exist."
16 echo "$0: Executing '${project}' ..."
20 cd "${JPROJECTS_HOME}/${P}" || exit 255
22 if [ ! -f "build.xml" ]
24 echo "$0: No build.xml found, skipping project '${P}'."
33 echo "$0: Cleaning up '${project}' ..."
38 echo "$0: Building JAR for '${project}' ..."
45 if [ "${STATUS}" != "0" ]
47 # This has failed, so try "dist"
51 # Still failing? Oh, to bad
52 if [ "${STATUS}" != "0" ]
54 echo "$0: Failed to build '${project}'."
60 if [ ! -f "./dist.sh" ]
62 echo "$0: Project '${project}' has no dist.sh"
63 elif [ ! -e "./dist.sh" ]
65 echo "$0: Error: Project '${project}' has non-executable dist.sh!"