ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luis.cone...@ge.com
Subject RE: question on task/target result codes
Date Mon, 14 Jun 2004 17:48:35 GMT
I have used <trycatch> task from ant-contrib 0.6 [1]. It works just as a
common try-catch construction in java. 

HTH
Luis

[1] http://sourceforge.net/projects/ant-contrib/

-----Original Message-----
From: JSaremi@manulife.com [mailto:JSaremi@manulife.com]
Sent: Monday, June 14, 2004 12:37 PM
To: user@ant.apache.org
Subject: question on task/target result codes






Is there a way to know whether a task succeeded or failed inside a script?
What I'd like to do is the following:

1- do someTask
2- Did the task fail? do someThing
3- Did the task succeed? do anotherThing

I know that I can just use "depends" attribute for (3) and I know that I
can have task 1 to fail on error but I don't want to exit the script yet. I
want to do some cleanup or send an alert or something.

thanks



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

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


Mime
View raw message