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

Reply via email to