From: Evan L. <ev...@co...> - 2005-05-27 17:56:13
|
I'm also looking for this feature. I would like to attach the results of FxCop. =20 Perhaps someone could take a stab at a MailLogger.attachfiles property? ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Paul Cowan Sent: May 25, 2005 5:48 AM To: nan...@li... Subject: [Nant-users] Mail Logger Hi all, Is it possible to send attachments using the MailLogger? I have the following defined: =20 <property name=3D"MailLogger.mailhost" value=3D"my.smtp.server " = /> <property name=3D"MailLogger.from" value=3D"me.com" /> <property name=3D"MailLogger.failure.notify" value=3D"true" /> <property name=3D"MailLogger.failure.to" value=3D" me.com " /> <property name=3D"MailLogger.success.to" value=3D" me.com " /> =20 I then run the script like: =20 nant -buildfile:my_buildfile.build -logger:NAnt.Core.MailLogger -l:my_build_log.log =20 I have an NUnit .xml I would like to attach on both success and failure. Is this possible? Thanks Paul =20 =20 _____________________________________________________________________ VirusChecked for the Incepta Group plc _____________________________________________________________________ |
From: Evan L. <ev...@co...> - 2005-05-27 18:39:43
|
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. =20 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. =20 e ________________________________ From: Gert Driesen [mailto:ger...@te...]=20 Sent: May 27, 2005 2:34 PM To: Evan Levy; 'Paul Cowan'; nan...@li... Subject: RE: [Nant-users] Mail Logger Hi Paul, Evan, =20 We could add a MailLogger.attachments property that takes an identifier of a defined fileset. =20 You could then have something like this in your build files: =20 <fileset id=3D"mail.attachments"> <include name=3D"SomeTool.log" /> <include name=3D"OtherTool/**/*.bak" /> </fileset> =20 Would it be necessary to have two different properties: one for successful builds (MailLogger.success.attachments) and one for failed builds ((MailLogger.failure.attachments) ? =20 Do you need to be able to set the list of files on the command-line ? =20 Gert =20 ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Evan Levy Sent: vrijdag 27 mei 2005 19:56 To: Paul Cowan; nan...@li... Subject: RE: [Nant-users] Mail Logger =09 =09 I'm also looking for this feature. I would like to attach the results of FxCop. =20 Perhaps someone could take a stab at a MailLogger.attachfiles property? ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Paul Cowan Sent: May 25, 2005 5:48 AM To: nan...@li... Subject: [Nant-users] Mail Logger =09 =09 Hi all, =09 Is it possible to send attachments using the MailLogger? I have the following defined: =20 <property name=3D"MailLogger.mailhost" value=3D"my.smtp.server " /> <property name=3D"MailLogger.from" value=3D"me.com" /> <property name=3D"MailLogger.failure.notify" value=3D"true" /> <property name=3D"MailLogger.failure.to" value=3D" me.com " /> <property name=3D"MailLogger.success.to" value=3D" me.com " /> =20 I then run the script like: =20 nant -buildfile:my_buildfile.build -logger:NAnt.Core.MailLogger -l:my_build_log.log =20 I have an NUnit .xml I would like to attach on both success and failure. Is this possible? =09 Thanks =09 Paul =20 =20 =09 _____________________________________________________________________ VirusChecked for the Incepta Group plc =09 _____________________________________________________________________ =09 |
From: Evan L. <ev...@co...> - 2005-05-27 18:57:58
|
... and setting files on the command line is not necessary in my case. =20 And thanks for the quick response! =20 e ________________________________ From: Evan Levy=20 Sent: May 27, 2005 2:40 PM To: 'Gert Driesen'; 'Paul Cowan'; nan...@li... Subject: RE: [Nant-users] Mail Logger 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. =20 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. =20 e ________________________________ From: Gert Driesen [mailto:ger...@te...]=20 Sent: May 27, 2005 2:34 PM To: Evan Levy; 'Paul Cowan'; nan...@li... Subject: RE: [Nant-users] Mail Logger Hi Paul, Evan, =20 We could add a MailLogger.attachments property that takes an identifier of a defined fileset. =20 You could then have something like this in your build files: =20 <fileset id=3D"mail.attachments"> <include name=3D"SomeTool.log" /> <include name=3D"OtherTool/**/*.bak" /> </fileset> =20 Would it be necessary to have two different properties: one for successful builds (MailLogger.success.attachments) and one for failed builds ((MailLogger.failure.attachments) ? =20 Do you need to be able to set the list of files on the command-line ? =20 Gert =20 ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Evan Levy Sent: vrijdag 27 mei 2005 19:56 To: Paul Cowan; nan...@li... Subject: RE: [Nant-users] Mail Logger =09 =09 I'm also looking for this feature. I would like to attach the results of FxCop. =20 Perhaps someone could take a stab at a MailLogger.attachfiles property? ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Paul Cowan Sent: May 25, 2005 5:48 AM To: nan...@li... Subject: [Nant-users] Mail Logger =09 =09 Hi all, =09 Is it possible to send attachments using the MailLogger? I have the following defined: =20 <property name=3D"MailLogger.mailhost" value=3D"my.smtp.server " /> <property name=3D"MailLogger.from" value=3D"me.com" /> <property name=3D"MailLogger.failure.notify" value=3D"true" /> <property name=3D"MailLogger.failure.to" value=3D" me.com " /> <property name=3D"MailLogger.success.to" value=3D" me.com " /> =20 I then run the script like: =20 nant -buildfile:my_buildfile.build -logger:NAnt.Core.MailLogger -l:my_build_log.log =20 I have an NUnit .xml I would like to attach on both success and failure. Is this possible? =09 Thanks =09 Paul =20 =20 =09 _____________________________________________________________________ VirusChecked for the Incepta Group plc =09 _____________________________________________________________________ =09 |
From: Gert D. <ger...@te...> - 2005-05-27 21:44:14
|
A fileset is never a fixed list of files, so it will never fail if a certain file does not exist. I'll see if I have time to add support for this tomorrow. Gert _____ From: nan...@li... [mailto:nan...@li...] On Behalf Of Evan Levy Sent: vrijdag 27 mei 2005 20:58 To: Gert Driesen; Paul Cowan; nan...@li... Subject: RE: [Nant-users] Mail Logger ... and setting files on the command line is not necessary in my case. And thanks for the quick response! e _____ From: Evan Levy Sent: May 27, 2005 2:40 PM To: 'Gert Driesen'; 'Paul Cowan'; nan...@li... Subject: RE: [Nant-users] Mail Logger 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:ger...@te...] Sent: May 27, 2005 2:34 PM To: Evan Levy; 'Paul Cowan'; nan...@li... 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: nan...@li... [mailto:nan...@li...] On Behalf Of Evan Levy Sent: vrijdag 27 mei 2005 19:56 To: Paul Cowan; nan...@li... 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: nan...@li... [mailto:nan...@li...] On Behalf Of Paul Cowan Sent: May 25, 2005 5:48 AM To: nan...@li... 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 _____________________________________________________________________ |
From: Merrill C. <mer...@ea...> - 2005-05-27 19:01:44
|
Evan, >>> 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 common usage would be to attach files on failure to help diagnois the failure, but not attach anything on success. Merrill |
From: Gert D. <ger...@te...> - 2005-05-28 09:17:04
|
> -----Original Message----- > From: nan...@li... > [mailto:nan...@li...] On Behalf Of > Merrill Cornish > Sent: vrijdag 27 mei 2005 21:02 > To: Evan Levy; Gert Driesen; Paul Cowan; > nan...@li... > Subject: RE: [Nant-users] Mail Logger > > Evan, > > >>> 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 common usage would be to attach files on failure to help > diagnois the failure, but not attach anything on success. This is now available in the latest nightly build: http://nant.sourceforge.net/nightly/latest/help/fundamentals/listeners.html# MailLogger Gert |
From: Gert D. <ger...@te...> - 2005-05-27 18:34:27
|
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: nan...@li... [mailto:nan...@li...] On Behalf Of Evan Levy Sent: vrijdag 27 mei 2005 19:56 To: Paul Cowan; nan...@li... 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: nan...@li... [mailto:nan...@li...] On Behalf Of Paul Cowan Sent: May 25, 2005 5:48 AM To: nan...@li... 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 _____________________________________________________________________ |