Re: Failed build not indicated as such

Marcio Marchini <[email protected]> Thu, 30 Mar 2006 16:09:00 -0500
Newsgroups gmane.comp.java.anthill
Message-ID <[email protected]>
Yes. The dreaded ant.bat problem...

The fix for this is in a new ant.bat provided by Urbancode:
“this is a problem with the ant.bat file that comes with the Ant 
distributions. The batch script does not return the real exit code from 
the java process, instead it returns 0 which confuses Anthill as to the 
real outcome of the build. If you switch the ant.bat file in the ant 
distribution you are using with this one: 
http://www.urbancode.com/download/ant.bat
Anthill will be able to detect the failures.”


marcio


Marcel Stör wrote:
> Hi all,
> 
> We're using the latest release 1.8.1.303 and experience a strange
> behaviour.
> 
> Using Ant's fail task (http://ant.apache.org/manual/CoreTasks/fail.html)
> we're aborting a build. The log file contains a failure message as
> expected. Anthill, though, logs that that build was successful and
> indicates this accordingly with a green bar.
> 
> Has anyone else experienced this and/or what could be the reason for
> this?
> 
> --
> Marcel Stör
> http://www.frightanic.com -> free Sudoku mailing service
> 
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill