You can define a property named "nant.onfailure", and set its value to the name of the target that should be executed when the project fails.
----- Original Message ----- From: "Bob Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 13, 2004 8:40 PM Subject: RE: [Nant-users] run task on failure You should be able to make the CheckIn target dependent on the Modify target. If the modify target fails the checkin target will not run. _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:32 PM To: [EMAIL PROTECTED] Subject: [Nant-users] run task on failure i have a situation where i would like to run a task to put a system back in its initial state if another task fails. Something like this: check out file modify file ----> fails check in modifications label build undo checkout if failure the key is i don't want to run the checkin, label, and build if modify fails. is there a best practice way to implement this in my build scripts. thanks, steve ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
