Thanks Damir,
The build script in the example you pointed me to is very similar to mine but my script still gives me the error message mentioned below. How can my script send me an attachment of a log file that is still being written to? Even if it can, won't the end of the log file be missing? (Everything after the mail task) The log file I am referring to is the one I specify in the command line when calling nAnt (-filename:C:\log.txt). Do you know of a better way to set this logfile so that I can include my build version in the filename?
Thanks for your help
Mark
-----Original
Message-----
Mark,
take a look at http://sourceforge.net/mailarchive/message.php?msg_id=6764362
Cheers,
Damir
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Mark Dowell 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
________________________________________________________________________ |
- [Nant-users] Mailing build results Mark Dowell
- RE: [Nant-users] Mailing build results Damir Simunic
- RE: [Nant-users] Mailing build results Morris, Jason
- Re: [Nant-users] Mailing build results Scott Hernandez
- RE: [Nant-users] Mailing build results Mark Dowell
- RE: [Nant-users] Mailing build results pierre . thorey