You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nathan Coast <na...@blueyonder.co.uk> on 2002/04/26 11:26:06 UTC
how to fail a task
Hi,
I'm working on a number of custom tasks. In certain situations I want the tasks
to fail causing the whole build to fail. What is the correct way to do this?
Throw a build exception? or is there some method to call that sets the build
status to failed?
thanks
Nathan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: how to fail a task
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
throwing a BuildException is the right way.
----- Original Message -----
From: "Nathan Coast" <na...@blueyonder.co.uk>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Friday, April 26, 2002 5:26 AM
Subject: how to fail a task
> Hi,
>
> I'm working on a number of custom tasks. In certain situations I want the
tasks
> to fail causing the whole build to fail. What is the correct way to do
this?
> Throw a build exception? or is there some method to call that sets the
build
> status to failed?
>
> thanks
> Nathan
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: how to fail a task
Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 26 Apr 2002, Nathan Coast <na...@blueyonder.co.uk>
wrote:
> Throw a build exception?
Yes.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>