WOW ! Super, Thanks... Based on your reply, I found these two constants in the Nant Code: - nant.onsuccess - nant.failure
Thank you very much, ! Pat -----Original Message----- From: Simon Steele [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 12:26 To: [EMAIL PROTECTED] Subject: RE: [Nant-users] Send an email based on the Build Status Hi, You can set the nant.failure property to a task that you would like to execute if the build fails: <property name="nant.failure" value="onfail" /> <target name="onfail"> <mail subject="Build Failure" ... /> </target> I think there's also nant.success. Hope this helps, -- Simon Steele Programmers Notepad - http://www.pnotepad.org/ -----Original Message----- From: Patrice Calvé [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 17:17 To: [EMAIL PROTECTED] Subject: [Nant-users] Send an email based on the Build Status Hi, Is it possible to send an email based on the result (succesfull or failed) of a build? I understand that there's a <mail/> task, but if there's a build failed, the task would'nt be executed. It would be nice to have a: <project name="a" onSuccess="TargetOK" onFail="TargetFail"> kind of "syntax". Pat __________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users