ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: how to fail a task
Date Fri, 26 Apr 2002 09:39:30 GMT
throwing a BuildException is the right way.


----- Original Message -----
From: "Nathan Coast" <nathan.coast@blueyonder.co.uk>
To: "Ant Users List" <ant-user@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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message