Jean-Michel,
 
One way to do this is by running nant 2x.  However, leave out the mail task out of the build but put it in it's own target   That is, a simple BATCH file could look something like this:
 
nant /f:somebuild.build buildall -l:build.log
nant /f:somebuild.build sendemail -l:other.log
 
Did that make sense? 
 
Felice
-----Original Message-----
From: Jean-Michel Theriault [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [Nant-users] Need help with <mail task

Hi all!!

 

I’m getting this message from my log file. It’s concerning the mail task.

 

[mail] File 'T:\er\build\proj\build.log' NOT attached to message. Invalid mail attachment 'T:\er\build\proj\build.log'.

 

I was wondering what does the “ Invalid mail attachment “ tag can tell me. Is it possible that it’s because the file is being written to. If so, how can I send a file that will be written to till the end of the build process??

       Jean Michel Thériault

 

  [EMAIL PROTECTED]

 

 

<<image004.jpg>>

Reply via email to