3 . ./.jprojects.sh || exit 255
5 for project in ${LIST}; do
6 IS_CORE="${project: -5}"
8 if [ "${project}" = "jprojects-scripts" ]
10 echo "$0: Skipping jprojects-scripts ..."
12 elif [ "${IS_CORE}" != "-core" ]
14 echo "$0: Project '${project}' is no 'core', skipped."
16 elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
18 echo "$0: Project '${project}' does not exist."
24 cd "${JPROJECTS_HOME}/${P}" || exit 255
26 if [ ! -f "build.xml" ]
28 echo "$0: No build.xml found, skipping project '${P}'."
37 echo "$0: Cleaning up '${project}' ..."
42 echo "$0: Building JAR for '${project}' ..."
49 echo "$0: STATUS='${STATUS}'"
50 if [ "${STATUS}" != "0" ]
52 echo "$0: Failed to build '${project}'."
56 # Is a "test" directory there?
59 echo "$0: Running unit tests ..."
66 if [ "${STATUS}" != "0" ]
68 echo "$0: Failed to test '${project}'."
74 if [ ! -f "./dist.sh" ]
76 echo "$0: Project '${project}' has no dist.sh"
77 elif [ ! -e "./dist.sh" ]
79 echo "$0: Error: Project '${project}' has non-executable dist.sh!"