diff options
author | Stephane Bailliez <sbailliez@apache.org> | 2002-01-27 19:25:29 +0000 |
---|---|---|
committer | Stephane Bailliez <sbailliez@apache.org> | 2002-01-27 19:25:29 +0000 |
commit | 96576e5e7d7f765e624173e466cbf67a269cb762 (patch) | |
tree | 740bbcc75a69f24a52869926e84d088dec79e2e7 /bootstrap.sh | |
parent | ea147aa02a3447a1310b268258f6d9fe6eb3c3c6 (diff) | |
download | ant-96576e5e7d7f765e624173e466cbf67a269cb762.tar.gz |
- Make the script fail if compilation or bootstrap fail.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270957 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 35f57b592..da839d6a1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -116,6 +116,11 @@ echo ... Compiling Ant Classes ${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \ ${TOOLS}/ant/taskdefs/compilers/*.java \ ${TOOLS}/ant/taskdefs/condition/*.java +ret=$? +if [ $ret != 0 ]; then + echo ... Failed compiling Ant classes ! + exit $ret +fi echo ... Copying Required Files @@ -129,6 +134,12 @@ chmod +x bin/antRun echo ... Building Ant Distribution "${JAVACMD}" -classpath "${CLASSPATH}" -Dant.home=. org.apache.tools.ant.Main -emacs "$@" bootstrap +ret=$? +if [ $ret != 0 ]; then + echo ... Failed Building Ant Distribution ! + exit $ret +fi + echo ... Cleaning Up Build Directories |