Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 55551 invoked from network); 19 Jan 2004 17:18:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Jan 2004 17:18:43 -0000 Received: (qmail 95618 invoked by uid 500); 19 Jan 2004 17:18:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95594 invoked by uid 500); 19 Jan 2004 17:18:26 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 95580 invoked from network); 19 Jan 2004 17:18:26 -0000 Received: from unknown (HELO mail.connection.com.br) (200.218.157.6) by daedalus.apache.org with SMTP; 19 Jan 2004 17:18:26 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.connection.com.br (8.12.10/8.12.10) with ESMTP id i0JHISl5024620 for ; Mon, 19 Jan 2004 15:18:28 -0200 Received: from mail.connection.com.br ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20398-01-9 for ; Mon, 19 Jan 2004 15:18:27 -0200 (EDT) Received: from webcpd.connection.com.br (dell.connection.com.br [200.218.157.14]) by mail.connection.com.br (8.12.10/8.12.10) with ESMTP id i0JH1aIg018521 for ; Mon, 19 Jan 2004 15:01:36 -0200 X-Originating-IP: [200.244.85.35] From: mcampelo@webcpd.com To: "Ant Users List" Subject: RE: MailLogger Date: Mon, 19 Jan 2004 17:01:36 +0000 Message-ID: <20040119.WJC.22149900@webcpd.connection.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Mailer: WebCpd (http://www.webcpd.com) v 0.9.14.000 X-Virus-Scanned: by amavisd-new at webcpd.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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