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?
