ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@Spirent.com>
Subject RE: How to make ANT continue if task fails
Date Tue, 11 Nov 2003 21:51:14 GMT
You can use trycatch from ant-contrib.

http://ant-contrib.sourceforge.net/tasks/trycatch.html

-- Larry

> -----Original Message-----
> From: Steph Richardson [mailto:steph@kvasar.com]
> Sent: Tuesday, November 11, 2003 1:48 PM
> To: Ant Users List
> Subject: How to make ANT continue if task fails
> 
> 
> This seems like a basic question, so sorry if it's a case of 
> RTFM, but :
> 
> How can I make ant continue running, even after a given 
> target has thrown a build exception ( without extending the task ).
> Is there a command line option for this ? Or something I can 
> write into the build file.
> 
> e.g. if I call "ant stop start" and the stop target throws an 
> exception, I still want the start target to execute.
> 
> 
> Thanks,
> 
> 
> Steph
> 

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


Mime
View raw message