You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Omri Spector <om...@actimize.com> on 2005/12/22 12:01:00 UTC
Using mail logger with large builds - improvement?
I perform nightly builds for a fairly large system. I use mail logger
for both success and notification since I want to be sure build ran and
handle any problems asap.
I found that mail logger's notification, which contains the full build
log, is problematic - it encumbers my e-mail.
In my site I improved on this by changing
org.apache.tools.ant.listener.MailLogger to support an additional
attribute, MailLogger.body, which sends a fixed body.
I then run the build with a fixed body ("Build log can be found at
....") and a logfile to a central directory
(i.e.
ant build.nightly -logfile log\build.log -logger
org.apache.tools.ant.listener.MailLogger
-DMailLogger.properties.file=nightlybuild.properties
With properties:
MailLogger.failure.to=me@a.com
MailLogger.success.to=me@b.com
MailLogger.mailhost=blabla
MailLogger.from=Nightly-Build
MailLogger.body=Nightly build log can be found at
\\\\win-build-1\\build\\log\\build.log
)
This works nicely for me, and I think is a nice feature.
Is anybody interested in the fixed class? Can this help other people?
(assuming it is helpful) Does anybody know how I can submit this to the
ant project?
Omri Spector
Java Team Leader
Actimize LTD.
Tel: +972-3-9213777 #101
Cell: +972-50-8234099
Fax: +972-3-9210777
mailto:omri.spector@actimize.com
Re: Using mail logger with large builds - improvement?
Posted by Martijn Kruithof <jk...@apache.org>.
File a bug report / enhancement request with the patch as an attachment.
If you have a patch attached please start the title of the bug report
with [PATCH]
b.r. Martijn
Omri Spector schreef:
>I perform nightly builds for a fairly large system. I use mail logger
>for both success and notification since I want to be sure build ran and
>handle any problems asap.
>I found that mail logger's notification, which contains the full build
>log, is problematic - it encumbers my e-mail.
>
>In my site I improved on this by changing
>org.apache.tools.ant.listener.MailLogger to support an additional
>attribute, MailLogger.body, which sends a fixed body.
>I then run the build with a fixed body ("Build log can be found at
>....") and a logfile to a central directory
>(i.e.
>ant build.nightly -logfile log\build.log -logger
>org.apache.tools.ant.listener.MailLogger
>-DMailLogger.properties.file=nightlybuild.properties
>
>With properties:
>
>MailLogger.failure.to=me@a.com
>MailLogger.success.to=me@b.com
>MailLogger.mailhost=blabla
>MailLogger.from=Nightly-Build
>MailLogger.body=Nightly build log can be found at
>\\\\win-build-1\\build\\log\\build.log
>)
>
>This works nicely for me, and I think is a nice feature.
>
>Is anybody interested in the fixed class? Can this help other people?
>(assuming it is helpful) Does anybody know how I can submit this to the
>ant project?
>
>
>Omri Spector
>Java Team Leader
>
>Actimize LTD.
>Tel: +972-3-9213777 #101
>Cell: +972-50-8234099
>Fax: +972-3-9210777
>mailto:omri.spector@actimize.com
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org