You can also use the NAntContrib <record/> task. Please take a look at the help (http://nantcontrib.sourceforge.net/help/tasks/record.html) and the mail archives* if you have further quesitons.
 
*Mail Archives: http://www.mail-archive.com/index.php?hunt=nant
----- Original Message -----
Sent: Tuesday, January 06, 2004 8:27 AM
Subject: RE: [Nant-users] Mailing build results

Mark,
 
I had the same problem when I first started using NAnt.  I never did find a solution to the locked log file.  I just sent a note when it was done, but never attached the log file.  Then I switched over to using Draco.NET at http://draconet.sf.net.
 
This tool automatically kicks off your builds and then emails the results.  In those results, is the build output from NAnt.  Plus, there are a lot of other features in Draco.NET.
 
Just thought that you might find this useful, but I don't have a solution for you just using NAnt.
 
Jason 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Dowell
Sent: Tuesday, January 06, 2004 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: [Nant-users] Mailing build results

The last step of my build script tries to mail the build log to a distribution list.

Unfortunately, this does not work and returns the message "File 'C:\log.txt' NOT attached to message. File does not exist or cannot be accessed."

I am guessing this is because nAnt is still writing to the log file when I try to mail it (Fair enough).

So how do I get round it??  This seems like an obvious requirement from a build process.

 

Thanks in advance

Mark



**********************************************************************
DISCLAIMER
Any opinions expressed in this email are those of the individual and not necessarily of Mondial Assistance (UK) Ltd. This email and any files transmitted with it, including replies and forwarded copies (which may contain alterations) subsequently transmitted from the Company, are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited.
If you have received this email in error please notify the IT support desk by telephone on +44 (0)208 2393984 or via email to
[EMAIL PROTECTED], including a copy of this message. Please then delete this email and destroy any copies of it. Thank you.
Please note that we reserve the right to monitor and read any emails sent and received by the Company under the Telecommunications (Lawful Business Practice) (Interception of Communications) Regulations 2000
Mondial Assistance (UK) Ltd
Mondial House
102 George Street
Croydon
CR9 1AJ
Mondial Assistance (UK) Ltd Registered in England No.1710361 Registered office as above
**********************************************************************

Reply via email to