Thanks Gert, that is exactly what I was looking for...
:)
"Gert Driesen" <[EMAIL PROTECTED]>
05/13/2004 01:59 PM |
To: "Bob Archer" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: Re: [Nant-users] run task on failure |
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