If everybody can live with the name exit you can use the one I wrote some
days ago. It's named exit because in the first Version it just did
System.exit(1) in execute, now it throws a BuildException using a message if
it was given one or "no message" if not.

You can rename it to (fail|abort|break|error|<your name here>) if you think
it should have a better name :-)

I have not included a patch for
/org/apache/tools/ant/taskdefs/defaults.properties - should I do so if
submitting new Tasks?

----- Original Message -----
From: "Eric VanLydegraf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 9:49 PM
Subject: RE: Fail task


> <exit> :)
>
> I've got a hacky solution I currently use
> <java classname="_fail" />
>
> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 04, 2000 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Fail task
>
>
> >>>>> "PD" == Peter Donald <[EMAIL PROTECTED]> writes:
>
>  PD> Hi, would it be possible to create a task that's sole purpose was
>  PD> to fail with a message.
>
> Possible and simple (you know that 8^).
>
> I've once proposed one named <die> (must be some Perl still hiding in
> my brain). Wanna play "name that task"?
>
> Stefan

Attachment: Exit.java
Description: Binary data

Reply via email to