Felice,

There are two built-in NAnt properties: nant.onsuccess and nant.onfailure.  Normally, 
they are not defined.  However, you can set either or both to a target(s) in your 
script.  If the overall NAnt build finishes successfully, then whatever task you have 
named in the nant.onsuccess property is run.  Similarly, if the build fails, the task 
named in nant.onfailure runs.

If you use the MailLogger or NantContrib <record>, then the onsuccess and onfailure 
tasks are the perfect place to "do something" with the log or record, such as emailing 
it somewhere.

Sorry, I don't have an example of these tasks in my current script.

Merrill


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to