ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: detecting build failures with OUT exiting
Date Mon, 13 Jan 2003 20:19:06 GMT

----- Original Message -----
From: "Mike Castle" <>
To: <>
Sent: Monday, January 13, 2003 09:25
Subject: detecting build failures with OUT exiting

> I'm knew to ANT and still in the process of trying to get up to speed on
> everything, including still reading through _Java Development With Ant_.

but of course :)

> Now, the problem with <antfile/>, at least as far as I have been able to
> read in the docs and ant-user archives, is that there is no
> failonerror="no" equivalent.  Nor do I see a general way to catch

There are <try> and <catch> tasks in; these let you wrap
the <ant> calls. Covered on p256 of the book, btw.

> So, if a file fails to compile, the automated build exits, and I can't
> off an email from inside ant to the appropriate individuals telling them
> they need to buy the next round.

MailLogger is the way to do this. I like your 'your broke the build'
punishment policy.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message