I have a ANT build.xml file which goes like this-
<?xml version="1.0"?>
<project name="apache-jena-2.10.0" basedir="." default="notifyme">
<target name="notifyme">
<java classname-"arq.sparql" fork="true">
<arg value="--data=C:\apache-jena-2.10.0\test.ttl"/>
<arg value="--query=C:\apache-jena-2.10.0\ASKTest.rq"/>
<jvmarg value="-Xmx1024M"/>
<classpath>
<path>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
</classpath>
</java>
</target>
</project>
This build.xml basically run a query and return a specefic result. The result comes like this-
notifyme:
[java] Ask =>No
BUILD SUCCESSFUL
Total time : 1second
Now my question is there any way I can make the build fail if Ask => No, if yes can any one please help me to customise the ANT build file.
Kind regards Som