3 . ./.jprojects.sh || exit 255
5 for project in ${LIST}; do
6 IS_LIB="${project: -4}"
8 if [ "${project}" = "jprojects-scripts" ]
10 echo "$0: Skipping jprojects-scripts ..."
12 elif [ "${IS_LIB}" != "-lib" ]
14 echo "$0: Project '${project}' is no remote-interface project - skipped."
16 elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
18 echo "$0: Project '${project}' does not exist."
22 echo "$0: Executing '${project}' ..."
26 cd "${JPROJECTS_HOME}/${P}" || exit 255
28 if [ ! -f "build.xml" ]
30 echo "$0: No build.xml found, skipping project '${P}'."
39 echo "$0: Cleaning up '${project}' ..."
44 echo "$0: Building JAR for '${project}' ..."
51 if [ "${STATUS}" != "0" ]
53 # This has failed, so try "dist"
57 # Still failing? Oh, to bad
58 if [ "${STATUS}" != "0" ]
60 echo "$0: Failed to build '${project}'."
66 if [ ! -f "./dist.sh" ]
68 echo "$0: Project '${project}' has no dist.sh"
69 elif [ ! -e "./dist.sh" ]
71 echo "$0: Error: Project '${project}' has non-executable dist.sh!"