ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Question about <mail>
Date Thu, 02 Nov 2000 10:17:10 GMT
>>>>> "s" == schmitt  <> writes:

 s> Is it possible to check inside the xml file if the build was
 s> successful?

I'm not sure I understand your question. Currently, if a build was not
successful, Ant would throw a BuildException and stop the whole
process. This means, if your mail task is executed, you can be sure
the build has been successful up to here - otherwise you wouldn't get
a chance to send the mail.

If you want to send a mail containing information about the outcome of
the build, <mail> is not the way to go. Use a BuildListener instead,
there's an example in the FAQ that does exactly this.


View raw message