Chris Fewtrell wrote:
Hi
In build scripts, often I want to carry on executing the script even
though the last task has failed (ie. use failonerror="false") but I
would like to know that the preceeding step has failed so I can do some
different processing to normal.
What do you think of the idea of having a "property" attribute on all
tasks, which contains the name of the property that after task
completion contains true if the task went ok or false if the task failed.
Chris,
There's a <trycatch> task in NAntContrib 0.85 RC2
http://nantcontrib.sourceforge.net/release/latest/help/tasks/trycatch.html
You should be able to do what you need with this.
Regards,
-- Troy
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users