ensure that release script fails when ant build fails

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@7238 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse 2011-09-11 19:13:45 +00:00
parent 0b23f48cf4
commit 75201a5a60

View File

@ -41,6 +41,12 @@ echo
cd ..
ant -f bin/build.xml dist
status="${?}"
if [ ${status} -ne 0 ]; then
echo "build failed - aborting release"
exit 2
fi
echo
echo "Press [enter] to generate docs"