ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa" <Kajsa.Ander...@thomson.com>
Subject RE: MailLogger
Date Mon, 19 Jan 2004 17:22:02 GMT
Here's how I invoke Ant using MailLogger...

ant -logger org.apache.tools.ant.listener.MailLogger 
-DMailLogger.properties.file=maillogger.properties

Perhaps MailLogger.properties.file isn't set in your build?

HTH

Kajsa Anderson

-----Original Message-----
From: mcampelo@webcpd.com [mailto:mcampelo@webcpd.com]
Sent: Monday, January 19, 2004 11:02 AM
To: Ant Users List
Subject: RE: MailLogger


Luis,

thanks for your answer.

Unfortunately, it's still not working!

I created a file named MailLogger.properties with the following content:

-- x --
MailLogger.mailhost=10.10.10.10
MailLogger.from=marco.campelo@vivo.com.br
MailLogger.replyto=marco.campelo@vivo.com.br
MailLogger.failure.to=marco.campelo@vivo.com.br
MailLogger.success.to=marco.campelo@vivo.com.br
MailLogger.failure.subject=Warning: Integration build has failed
MailLogger.success.subject=Info: Integration build has succeed
-- x --

This file is in the same directory of build.xml.

So I called ant -verbose -logger org.apache.tools.ant.listener.MailLogger.

I'm trying to use the option -verbose but I can't see any debug information
during the execution! What's wrong?

C:\eclipse\workspace\ServiceRouter>ant -verbose -logger
org.apache.tools.ant.listener.MailLogger
Buildfile: build.xml

init:

compileFramework:

compileServiceRouter:

dist:

buildServiceRouter:

BUILD SUCCESSFUL
Total time: 8 seconds

Regards,
Marco Campelo

Conelly, Luis (PS, GNF, Contractor) (Luis.Conelly@gnf.com) escreveu:
>
>Marco,
>
>	I had a similar issue a few months ago. What I did was to put my
configuration into a .properties file like:
>
>----------------------
>#MailLogger.properties
>MailLogger.mailhost=my.email.server.address
>MailLogger.from=Builder@myDevServer.com
>MailLogger.failure.to=user1@myDevServer.com
>MailLogger.failure.subject=Warning: Integration build has failed
>MailLogger.success.to=user1@myDevServer.com;user2@myDevServer.com
>MailLogger.success.subject=Info: Integration build has succeed
>----------------------
>
>then, I just called the logger as the manual says:
>
>ant -logger org.apache.tools.ant.listener.MailLogger
>
>I am not pretty sure, but I recall when I was doing this, I couldn't change
the name of the .properties file (maybe I am telling something wrong), but
when I set the name to 'MailLogger.properties' everything started to work
fine.
>
>The configuration I had at that time was:
>
>OS: Win2K Pro
>JDK: 1.3.1 02
>Ant: 1.5.2
>
>HTH
>
>-Luis
>
>
>-----Original Message-----
>From: mcampelo@webcpd.com [mailto:mcampelo@webcpd.com]
>Sent: Monday, January 19, 2004 9:13 AM
>To: Ant Users List
>Subject: Re: MailLogger
>
>
>Hello Folks,
>
>thanks for your answers!
>
>The mail server is working properly because when I try to use the tag ,
>I receive the email message. I also tried telnet 10.10.10.10 25 and I sent
an
>email message successfully.
>
>The problem seems to be only with MailLogger. I couldn't find a good
>documentation explaining how to use (a step by step would be great!).
>
>Let me know if you have any good URL, so I can double check.
>
>PS: I'm running Ant under Windows 2000 Professional.
>
>Best Regards,
>Marco Campelo
>
>Erik Hatcher (erik@ehatchersolutions.com) escreveu:
>>
>>If you are not getting an error message when the build completes, then
>>my suspicion is that your mail server is receiving the mail, but it is
>>not going anywhere from there.  Try a different mailhost (even a bogus
>>one) and see what happens.
>>
>>As for properties - it is irrelevant where or how the properties get
>>set as long as they are set before the build completes (successfully or
>>otherwise).
>>
>>	Erik
>>
>>
>>On Jan 19, 2004, at 8:43 AM, mcampelo@webcpd.com wrote:
>>
>>> Hello There,
>>>
>>> I wrote a build.xml in order to build my project on a daily basis
>>> using ANT.
>>>
>>> I'd like to send the output of that daily build to my email account.
>>>
>>> I read that it's possible to use MailLogger to do it, making a call:
>>>
>>> ant -logger org.apache.tools.ant.listener.MailLogger
>>>
>>> I set the properties below in my build.xml:
>>>
>>>
>>>
>>> > value="marco.campelo@abc.com.br"/>
>>> > value="marco.campelo@abc.com.br"/>
>>>
>>>
>>> The build completes sucessfully, but I don't receive any email not
>>> even an
>>> error message.
>>>
>>> I also tried to set the properties in a file and make the following
>>> call:
>>>
>>> ant -D mail.properties -logger org.apache.tools.ant.listener.MailLogger
>>>
>>> I think (actually I'm pretty sure) that I'm not using MailLogger
>>> correctly.
>>>
>>> Could you please help me?
>>>
>>> PS: Yes, I read the manual. Yes, I searched in Google and GoogleGroups
>>> but I
>>> couldn't find any tip.
>>>
>>> Thanks in advance,
>>> Marco CampĂȘlo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message