ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa" <Kajsa.Ander...@thomson.com>
Subject RE: Mail to be sent on failure of Build
Date Wed, 30 Apr 2003 16:43:55 GMT
I'm using MailLogger (as seen in _Java_Development_With_Ant_)rather than the
mail task...

ant -logger org.apache.tools.ant.listener.MailLogger 
-DMailLogger.properties=maillogger.properties

And here's maillogger.properies:
MailLogger.from = me@mydomain.com
MailLogger.failure.to = me@mydomain.com
MailLogger.mailhost = my_mail_host
MailLogger.success.to = me@mydomain.com
MailLogger.success.subject = ${ant.project.name} - Build success
MailLogger.failure.subject = FAILURE - ${ant.project.name}
MailLogger.success.notify = on

If you want to get email only on failure, set MailLogger.success.notify to
off.

HTH
Kajsa Anderson

-----Original Message-----
From: Mehta, Suketu [mailto:Suketu.Mehta@atosorigin.com]
Sent: Wednesday, April 30, 2003 11:19 AM
To: Ant Users List
Subject: Mail to be sent on failure of Build


Hi,

how should I include the mail task in the buildfile, if I want to sent the
e-mail for Succesful or Failure of the build?

Regards,
Suketu Mehta



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

Mime
View raw message