Indeed MailLogger is probably your best option. Combine that with <fail 
if="foundErrors"/> and you can have the subject of the email reflect the status 
of the build.

-Rob Anderson 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 06, 2006 10:12 PM
> To: user@ant.apache.org; [EMAIL PROTECTED]
> Subject: AW: send email about status of the build
> 
> Would that
> http://ant.apache.org/manual/listeners.html#MailLogger
> help?
> 
> 
> Jan 
> 
> >-----Ursprüngliche Nachricht-----
> >Von: Deep Chand [mailto:[EMAIL PROTECTED]
> >Gesendet: Dienstag, 7. Februar 2006 06:53
> >An: user@ant.apache.org
> >Betreff: send email about status of the build
> >
> >Hello community,
> >
> >I'm a newbie to Ant. I tried to search for this solution but 
> couldn't 
> >find.
> >
> >I want to send emails with the status of the build and with logs if 
> >there are errors. I'm able to send email and also the build process 
> >works but I'm not able to figure out how to write the error 
> logs in a 
> >file from the ant script. Is there any task that can 
> interpret the log 
> >file or do I have to define a custom task?  I guess this should be a 
> >very common problem ...so what's the recommended practice. Thanks in 
> >advance.
> >
> >I know I can use some thing like below to figure out if 
> certain file is 
> >present or not:
> >
> ><condition property="foundErrors">
> >             <available file="errorFile">
> >     </condition>
> >
> >Please help.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional 
> >commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to