ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Sugnet <j...@lutris.com>
Subject ant.bat return value problem
Date Fri, 15 Jun 2001 00:04:46 GMT
Having a problem with my mail, my apologies if you got this twice.........

I have been having a problem on window 2000 using ant 1.3 in which the
return value of running the ant.bat script is 0 even when the "build"
was clearly unsuccessful.  My build.xml file is small, and contains only
a couple of exec tasks, both of which have the failonerror attribute set
to "yes".  When, for some reason, these exec tasks fail, the build
stops, but the exit value is still 0, even when the output clearly
states "BUILD FAILED".  I am checking the status of that exit value and
proceeding accordingly, and it is critical that the exit value indicate
the actual outcome of the build.  I think this is a known problem, as i
was able to find mention of it on the mailing list archives for ant-dev
under the subject "Behavior of Ant task and exec task / return values
for Ant.bat?".  I'm just wondering if there is a pathch somewhere, or an
updated release of ant that includes this fix.  Any information is
appreciated.

thanks
josh




Mime
View raw message