I invoke MailLogger like so:
ant -logger org.apache.tools.ant.listener.MailLogger
-DMailLogger.properties.file=maillogger.properties
I have a vague recollection that when I tried to set the same properties
without setting ${MailLogger.properties.file}, it didn't work... Don't know if
that helps, but it might give you a possible work-around...
Kajsa Anderson
> -----Original Message-----
> From: Rich Harris [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 09, 2005 5:10 PM
> To: [email protected]
> Subject: Odd MailLogger issue..
>
>
> ANT Version: 1.6.0
>
> Command line run:
>
> ant -f test.xml -logger org.apache.tools.ant.listener.MailLogger
>
>
>
> test.xml refs a properties file that contains the following:
>
>
>
> # mail variables
>
> [EMAIL PROTECTED]
>
> MailLogger.mailhost=mail.XXXXXXX.com
>
> [EMAIL PROTECTED]
>
> MailLogger.failure.notify=true
>
> MailLogger.success.notify=true
>
> [EMAIL PROTECTED]
>
> [EMAIL PROTECTED]
>
> MailLogger.failure.subject=Build has failed!
>
> MailLogger.success.subject=Build was successful!
>
>
>
> --------------------------------------------------
>
> ..and I still get the following for failed builds:
>
> --------------------------------------------------
>
>
>
> MailLogger failed to send e-mail!
>
> java.lang.Exception: Missing required parameter: MailLogger.from
>
> at
> org.apache.tools.ant.listener.MailLogger.getValue(MailLogger.java:220)
>
> at
> org.apache.tools.ant.listener.MailLogger.buildFinished(MailLog
> ger.java:1
> 68)
>
> at
> org.apache.tools.ant.Project.fireBuildFinished(Project.java:1819)
>
> at org.apache.tools.ant.Main.runBuild(Main.java:689)
>
> at org.apache.tools.ant.Main.startAnt(Main.java:220)
>
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
>
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>
>
>
> Obviously I've filled out the MailLogger.from variable.
> Anybody else had
> this problem?
>
>
>
> _____________________________________
>
> Rich Harris
>
> Release/Configuration Engineer
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]