You might look at NAntContrib TryCatch Task
http://nantcontrib.sourceforge.net/release/0.85/help/tasks/trycatch.html
I find this much more robust than a global property that can only have
one value. What if you are deep in a sub-build and need specialized
error handling? Before you had to save the OnFailure value, if set, set
it to your local one, and properly re-hook the old one in when you were
done. It was a mess.
The TryCatch handles nested error handling Finally blocks flawlessly (at
least for me so far).
Cash Foley
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Archer
Sent: Tuesday, January 09, 2007 3:36 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nant.onfailure
Can someone give me a bit more info about nant.onfailure property? For
example, when exactly does this target run?
Also... a lot of the built in properties show as deprecated. It would be
nice, if possible that deprecated items specified in the docs also
specified what should be used instead or what replaced the item.
BOb
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users