ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Roy" <>
Subject Failonerror does not have any effect on compilation failure
Date Sat, 01 Sep 2007 06:18:12 GMT
Hi All,

I am calling ant.bat using in the following way :

  <property name=debug" value="false" />
  <target name="project.compile">                                        
        <exec taskname="compile" dir="${project.dir}" executable="cmd.exe">
              <arg line="/c ant.bat" />
              <arg line="-file build_new.xml -Dfailonerrror=true
-Ddebug=${debug}"  />


I am using javac task inside projecbuild.xml and calling each project 's
projectbuild.xml using <exec> task as shown above in the target. The problem
is even compilation of the porject is failed, it continue to execute  next
target, I am not sure what is wrong. I think in principle it should not go
further and halt the build immediately.

Could somebody point the troubleslopt? Or Am I missing something ? Thanks
for the pointers!




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message