ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Castermans <...@beta9.be>
Subject Re: Target "Failed"
Date Thu, 02 Nov 2000 20:38:35 GMT
On Thursday 02 November 2000 21:28, you wrote:
> --- Jan Castermans <jan@beta9.be> wrote:
> > On Thursday 02 November 2000 19:58, you wrote:
> > > Is there a Target "Failed" ? I'd like to do some cleaning up in case
> >
> > of a failed build.
> >
> > I'm not aware of any task like that.
> >
> > It would be nice to have it, because it could be used to mail me in case
> > my nightly build fails...
>
> There is a <fail> task, but it can't be used for sending mail on failure
> -- that (currently) requires the BuildListener stuff that's been mentioned
> by Stefan several times (check the archive). For the <fail> task, see:
>   http://jakarta.apache.org/ant/jakarta-ant/docs/#fail
>
> You could probably modify the <fail> task to do more than it does now,
> though.
>
> Diane
>
I know, I've been using the buildlistener interface  to mail me in case of 
failed builds, but that was before ant1.2 and as such before the "mail" 
action.
In ant 1.2 it would be nice to have something like a "failed" target and then 
use this mail facility from within the build.xml, wouldn't it?

Mime
View raw message