ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject question on task/target result codes
Date Mon, 14 Jun 2004 17:36:33 GMT

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message