Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 93445 invoked from network); 19 Jan 2004 18:25: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 18:25:43 -0000 Received: (qmail 20360 invoked by uid 500); 19 Jan 2004 18:25:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 20328 invoked by uid 500); 19 Jan 2004 18:25: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 20315 invoked from network); 19 Jan 2004 18:25:26 -0000 Received: from unknown (HELO c000.snv.cp.net) (209.228.32.64) by daedalus.apache.org with SMTP; 19 Jan 2004 18:25:26 -0000 Received: (cpmta 21198 invoked from network); 19 Jan 2004 10:25:29 -0800 Received: from 24.51.109.181 (HELO ?192.168.1.102?) by smtp.hatcher.net (209.228.32.64) with SMTP; 19 Jan 2004 10:25:29 -0800 X-Sent: 19 Jan 2004 18:25:29 GMT Mime-Version: 1.0 (Apple Message framework v609) In-Reply-To: <20040119.WJC.22149900@webcpd.connection.com.br> References: <20040119.WJC.22149900@webcpd.connection.com.br> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Erik Hatcher Subject: Re: MailLogger Date: Mon, 19 Jan 2004 13:25:25 -0500 To: "Ant Users List" X-Mailer: Apple Mail (2.609) 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 Did you try pointing to a bogus mail server to see what happens? =20 Please do so. I'd rather see an explicit error and work towards it working. Can you =20= monitor your mail server to see if it is being accessed? On Jan 19, 2004, at 12:01 PM, mcampelo@webcpd.com wrote: > Luis, > > thanks for your answer. > > Unfortunately, it's still not working! > > I created a file named MailLogger.properties with the following =20 > content: > > -- x -- > MailLogger.mailhost=3D10.10.10.10 > MailLogger.from=3Dmarco.campelo@vivo.com.br > MailLogger.replyto=3Dmarco.campelo@vivo.com.br > MailLogger.failure.to=3Dmarco.campelo@vivo.com.br > MailLogger.success.to=3Dmarco.campelo@vivo.com.br > MailLogger.failure.subject=3DWarning: Integration build has failed > MailLogger.success.subject=3DInfo: Integration build has succeed > -- x -- > > This file is in the same directory of build.xml. > > So I called ant -verbose -logger =20 > org.apache.tools.ant.listener.MailLogger. > > I'm trying to use the option -verbose but I can't see any debug =20 > 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=3Dmy.email.server.address >> MailLogger.from=3DBuilder@myDevServer.com >> MailLogger.failure.to=3Duser1@myDevServer.com >> MailLogger.failure.subject=3DWarning: Integration build has failed >> MailLogger.success.to=3Duser1@myDevServer.com;user2@myDevServer.com >> MailLogger.success.subject=3DInfo: 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 =20= >> change > the name of the .properties file (maybe I am telling something wrong), = =20 > but > when I set the name to 'MailLogger.properties' everything started to =20= > 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 = =20 >> , >> I receive the email message. I also tried telnet 10.10.10.10 25 and I = =20 >> 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, =20= >>> then >>> my suspicion is that your mail server is receiving the mail, but it =20= >>> is >>> not going anywhere from there. Try a different mailhost (even a =20 >>> 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 = =20 >>> 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=3D"marco.campelo@abc.com.br"/> >>>>> value=3D"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 =20 >>>> 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 =20 >>>> GoogleGroups >>>> but I >>>> couldn't find any tip. >>>> >>>> Thanks in advance, >>>> Marco Camp=EAlo >>>> >>>> >>>> = --------------------------------------------------------------------=20 >>>> - >>>> 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