ant-user mailing list archives

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

----- Original Message -----
From: "Mike Castle" <dalgoda@ix.netcom.com>
To: <ant-user@jakarta.apache.org>
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
failures.


There are <try> and <catch> tasks in ant-contrib.sf.net; 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
send
> 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message