ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Reporting build success/failure in <ant>/<subant>'s output log file?
Date Tue, 08 May 2007 16:15:30 GMT
On 5/1/07, Andrew Bayer (abayer) <abayer@cisco.com> 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.

Sorry, not a direct answer to your question, more a "change your
approach" advice. Good luck, --DD

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


Mime
View raw message