ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Mail task on Target failure
Date Fri, 05 Aug 2011 13:16:17 GMT
On 2011-08-05, vino_hymi wrote:

> I have ant project where there is set of targets. After successful
> completion of all targets I call mail target at the end to send a mail with
> attached logs with message build successful.

> Now, my challenge is if one of the target fails then build exits so it will
> not proceed to mail target which is the last one to perform on completion of
> all. How can I use mail target to send mail on any target failure?

> Any hints?

Use the MailLogger instead of a custom target?

Stefan

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


Mime
View raw message