ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Bruss <abr...@awrcorp.com>
Subject RE: Mail task on Target failure
Date Fri, 05 Aug 2011 13:38:00 GMT
You could let the build go if an exec fails and store the result in an xml file. Then at the
end check all the results and if one is non-zero fail after sending mail. 

To sum up, store the results of your tasks and check them all at the end. Send mail and then
use the <fail> task if you need to fail the build.

Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI  53092  USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abruss@awrcorp.com
W: http://www.awrcorp.com

-----Original Message-----
From: vino_hymi [mailto:vinohymi@gmail.com] 
Sent: Friday, August 05, 2011 4:02 AM
To: user@ant.apache.org
Subject: Mail task on Target failure

Hi,

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?

-Vinodh Kumar

--
View this message in context: http://ant.1045680.n5.nabble.com/Mail-task-on-Target-failure-tp4669046p4669046.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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


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


Mime
View raw message