Title: Transactionality in NAnt

You can put more tasks within the onsuccess and onfailure.

 

MArk B.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Castro, Edwin Gabriel (Firing Systems Engr.)
Sent: Wednesday, January 26, 2005 10:48 AM
To: Castro, Edwin Gabriel (Firing Systems Engr.); Gert Driesen; [EMAIL PROTECTED] Sourceforge. Net
Subject: RE: [Nant-users] Specifying a Finally target

 

Can I specify more than one target with “nant.onsuccess” and “nant.onfailure”?

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Castro, Edwin Gabriel (Firing Systems Engr.)
Sent: Wednesday, January 26, 2005 10:03 AM
To: Gert Driesen; [EMAIL PROTECTED] Sourceforge. Net
Subject: RE: [Nant-users] Specifying a Finally target

 

Thanks Gert! I think this is exactly what I needed!

 

--Edwin

 


From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 10:03 PM
To: Castro, Edwin Gabriel (Firing Systems Engr.); '[EMAIL PROTECTED] Sourceforge. Net'
Subject: RE: [Nant-users] Specifying a Finally target

 

Edwin,

 

You can use the "nant.onsuccess" and "nant.onfailure" attributes to specify the target to execute when the build finishes (with or without failure).

 

Hope this helps,

 

Gert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Castro, Edwin Gabriel (Firing Systems Engr.)
Sent: dinsdag 25 januari 2005 21:46
To: [EMAIL PROTECTED] Sourceforge. Net
Subject: [Nant-users] Specifying a Finally target

I’m in need to execute a target after all other targets have executed. I have an init target that does some configuration and I need a teardown target to execute after all targets scheduled to execute have done so. I’d like to tell nant at runtime to add this teardown target to its target list and execute it at the end. Is there a way to do this? Perhaps it is doable with a script? Any help is appreciated!

 

--Edwin

Reply via email to