ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: How to run an ant target on success/failed build
Date Wed, 23 Jul 2008 06:49:29 GMT
You can do this by configuring the maillogger in your startscript:

ant build_ant.xml -logger org.apache.tools.ant.listener.MailLogger 

Then you have to set the following properties
MailLogger.mailhost=
MailLogger.from=
MailLogger.failure.subject=failed
MailLogger.success.subject=successfull
MailLogger.success.to=someone@somewhwere.xx
MailLogger.failure.to=someoneelse@somewhwere.xx

Then you will send the output of Ant to the specifies addresses.

Another strategy (big solution) is using CruiseControl






-- 
J├╝rgen Knuplesch
-----Urspr├╝ngliche Nachricht-----
Von: p2008 [mailto:prempel@gmail.com] 
Gesendet: Mittwoch, 23. Juli 2008 00:35
An: user@ant.apache.org
Betreff: How to run an ant target on success/failed build


I need to be able to trigger running a specific ant target when the build succeeds, and another
one when it fails.  This will be used to send out an email indicating the status of the build.

I have done this in the past in nant (.NET) which has a built in property called nant.onsuccess
and one called nant.onfailure.  

Is there something similar in ant, or any does anybody know how to do this?

Thanks!
--
View this message in context: http://www.nabble.com/How-to-run-an-ant-target-on-success-failed-build-tp18600235p18600235.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