ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Target "Failed"
Date Thu, 02 Nov 2000 20:28:58 GMT
--- 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


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Mime
View raw message