Fail build, send email
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Nicholas_Poon
Posted On:   Tuesday, May 28, 2002 02:20 AM

Hi


I would like to ask if it's possible to write an ANT module which can send email to inform whenever there is a failed build.


I have tried by using "if", "unless", and "depend" structure for the target node but it seems that it cannot be trapped, and only "condition" state is supported.


Can anybody show a sample code which can send an email when the build script is failed?


Thks in advance


Regards.

Re: Fail build, send email

Posted By:   Erik_Hatcher  
Posted On:   Thursday, May 30, 2002 06:44 AM

You cannot send a build failure from within your Ant build file. The proper way to do this is use a logger (the command-line -logger switch). There is a MailLogger built into the Ant 1.5 codebase and described in its documentation.
About | Sitemap | Contact