ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Riff <>
Subject How to make the build fail when exec encounters non-zero exit code?
Date Mon, 03 Apr 2000 22:58:36 GMT
I have a build.xml file which uses the Java task with fork="yes" to
execute JavaCC in an external process. It works great except that if
there's a problem with the grammar files, then Ant reports the exit code
(1, I think) but continues to process the next target. How can I cause
Ant to stop the build process immediately when it encounters a non-zero
exit code?

View raw message