3 . ./.jprojects.sh || exit 255
5 for project in ${LIST}; do
6 if [ ! -d "${JPROJECTS_HOME}/${project}" ]
8 echo "$0: Project '${project}' does not exist."
12 echo "$0: Executing '${project}' ..."
16 cd "${JPROJECTS_HOME}/${P}" || exit 255
18 if [ ! -e "build.xml" ]
20 echo "$0: No build.xml found, skipping project '${P}'."
24 if [ -x "${ANT_BIN}" -a "$1" != "d" ]
26 # Cleanup project and build JAR
33 if [ "${STATUS}" != "0" ]
35 # This has failed, so try "dist"
39 # Still failing? Oh, to bad
40 if [ "${STATUS}" != "0" ]
42 echo "$0: Failed to build '${project}'."
48 if [ ! -f "./dist.sh" ]
50 echo "$0: Project '${project}' has no dist.sh"
51 elif [ ! -e "./dist.sh" ]
53 echo "$0: Error: Project '${project}' has non-executable dist.sh!"