ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco.Lo...@living-systems.de
Subject Re: how to fail a task
Date Fri, 26 Apr 2002 09:31:42 GMT
Try using

<fail message="Not implemented yet"/>

Cheers,

Marco.






Nathan Coast <nathan.coast@blueyonder.co.uk>
04/26/2002 11:26 AM
Please respond to "Ant Users List"

 
        To:     Ant Users List <ant-user@jakarta.apache.org>
        cc: 
        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>




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message