ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Roy" <ravi.a...@gmail.com>
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}"  />
         </exec>

  </target>

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!

Regards,
Ravi

  

	



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message