Re: Re: Ant declares the build failed, Anthill sends email saying the build passed ??!!
Marcio Marchini <[email protected]>
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
I will try it, thanks. Shouldn't you be running ant.cmd instead of ant.bat, since this is an NT box? Maybe the problem wouldn't happen? Thanks, marcio varban wrote: > Hi Marcio, > > 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 AnthillOs 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 > AnthillOs will be able to detect the failures. > > Regards, > Varban > > Marcio Marchini wrote: > >> >> Here's the logs. Did I miss anything? If Ant failed, why did >> Anthill think the build passed? >> >> Thanks, >> >> marcio >> >> >> Anthill version 1.8.0.264 >> >> Retrieving project files: OK >> Incrementing version: OK >> Build: OK >> Project Site: http://localhost:8080/anthill/projects/HelloWorld/ >> >> Build Log: >> http://localhost:8080/anthill/projects/HelloWorld/buildLogs/HelloWorld-1.28-build.log >> >> Tag: OK >> >> Publish: NOT REQUIRED >> Got Revisions: OK >> >> [...] >> compile: >> [javac] Compiling 5 source files to >> C:\java\anthill-1.8.0.264\HelloWorldWorkDir\agile\CTIP\com.bedarra.continuousbuild.example\build\temp\classes >> >> [javac] >> C:\java\anthill-1.8.0.264\HelloWorldWorkDir\agile\CTIP\com.bedarra.continuousbuild.example\src\com\bedarra\continuousbuild\example\HelloWorldServlet.java:17: >> cannot find symbol >> [javac] symbol : class zzString >> [javac] location: class >> com.bedarra.continuousbuild.example.HelloWorldServlet >> [javac] public static zzString HELLO = "Hello World"; //Not >> final so that Findbugs can complain >> [javac] ^ >> [javac] 1 error >> >> [...] >> >> BUILD FAILED >> C:\java\anthill-1.8.0.264\HelloWorldWorkDir\agile\CTIP\com.bedarra.continuousbuild.example\build.xml:98: >> Compile failed; see the compiler error output for details. >> >> Total time: 5 seconds >> >> >> >> >> Marcio Marchini wrote: >> >>> Hi, >>> >>> A developer commited a test case without commiting the code it >>> needs. Anthill did its job, started the build, and Ant's task named >>> "compile" detected the code did not even compile, and said the build >>> failed. Perfect. However, Anthill sent email saying the build passed. >>> Attached to this email message it sent, it included the log where Ant >>> says the build failed because javac failed. >>> >>> >>> Did I miss anything?? >>> >>> If Ant says a build failed, shouldn't Anthill detect so as well? >>> >>> Thanks, >>> >>> marcio >>> >>> >> >> _______________________________________________ >> Anthill mailing list >> Anthill-IWHQxnLZ/[email protected] >> http://lists.urbancode.com/mailman/listinfo/anthill > > _______________________________________________ > Anthill mailing list > Anthill-IWHQxnLZ/[email protected] > http://lists.urbancode.com/mailman/listinfo/anthill