ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject [NEW] Exit-Task (was: Re: Fail task)
Date Thu, 07 Sep 2000 07:01:41 GMT
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" <ericv@kinzan.com>
To: <ant-dev@jakarta.apache.org>
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:bodewig@bost.de]
> Sent: Monday, September 04, 2000 11:57 PM
> To: ant-dev@jakarta.apache.org
> Subject: Re: Fail task
>
>
> >>>>> "PD" == Peter Donald <donaldp@mad.scientist.com> 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

Mime
View raw message