From 96576e5e7d7f765e624173e466cbf67a269cb762 Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Sun, 27 Jan 2002 19:25:29 +0000 Subject: [PATCH] - 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 --- bootstrap.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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