I have an ant build file that executes a makefile
<target name="jni">
<exec executable="make">
<arg line="-f jni/Makefile"/>
</exec>
</target>
however if the make fails the other rules that depend on this rule will execute
how can I stop ant if the jni rule fails?
use the
failonerrorattribute, which isfalseby default:I never stop wondering why it is not true by default…
See the docs.