In my case, it wouldn't matter.  I send the MailLog on success and failure, and would attach the same file(s).  I suppose there might be a need to attach one file on success, and another on failure, but I'm not sure what that would be.
 
One thing to note is the potentiality that if a build fails, the file to be attached might not have been generated, depending on where the build failed.  The MailLogger should still (at least optionally) send the email even if the specified attachment(s) cannot be found.
 
e


From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: May 27, 2005 2:34 PM
To: Evan Levy; 'Paul Cowan'; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Mail Logger

Hi Paul, Evan,
 
We could add a MailLogger.attachments property that takes an identifier of a defined fileset.
 
You could then have something like this in your build files:
 
<fileset id="mail.attachments">
    <include name="SomeTool.log" />
    <include name="OtherTool/**/*.bak" />
</fileset>
 
Would it be necessary to have two different properties: one for successful builds (MailLogger.success.attachments) and one for failed builds ((MailLogger.failure.attachments) ?
 
Do you need to be able to set the list of files on the command-line ?
 
Gert
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Evan Levy
Sent: vrijdag 27 mei 2005 19:56
To: Paul Cowan; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Mail Logger

I'm also looking for this feature.  I would like to attach the results of FxCop.
 
Perhaps someone could take a stab at a MailLogger.attachfiles property?


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Cowan
Sent: May 25, 2005 5:48 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Mail Logger

Hi all,


Is it possible to send attachments using the MailLogger?  I have the following defined:

 

        <property name="MailLogger.mailhost" value="my.smtp.server " />

        <property name="MailLogger.from" value="me.com" />

        <property name="MailLogger.failure.notify" value="true" />

        <property name="MailLogger.failure.to" value=" me.com " />

        <property name="MailLogger.success.to" value=" me.com " />

 

I then run the script like:

 

nant -buildfile:my_buildfile.build -logger:NAnt.Core.MailLogger -l:my_build_log.log

 

I have an NUnit .xml I would like to attach on both success and failure.  Is this possible?


Thanks


Paul

 

 


_____________________________________________________________________
VirusChecked for the Incepta Group plc
_____________________________________________________________________

Reply via email to