Dominique Devienne wrote:
On 5/1/07, Andrew Bayer (abayer) <[EMAIL PROTECTED]> wrote:
Is there any way to do this without having to subclass Ant.java?
I'm not married to the output being BUILD SUCCESSFUL or BUILD FAILED
specifically - any pass/fail string that I can do a regexp for would be
sufficient. Any help/advice/etc anyone could provide would be greatly
appreciated. Thank you!

I've used (at a previous job) <subant> extensively, with several
levels of sub-projects and many  "leaf" projects as well, yet your
request implies that you set failonerror="false" in <subant>, which is
the reason you have to jump thru all these hoops to try to find out
a-posteriori when a sub-project failed.

I've always been a proponent that if *anything* fails, the *whole*
build fails. If you were to take this approach, we'd see how it
simplifies your Ant build. This approach, coupled with a
SubBuildLogger that tells you which build a target belongs to is all I
ever needed with my large builds.


I'd like to hand a graph of builds to run (from Ivy) and have <subant> detect a failure and skip all dependencies, then carry on with everything else. So at the end of the <subant> run, we'd report
 -failing builds
 -skipped builds
then it would halt.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to