Title: Transactionality in NAnt
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