ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <elstonk...@yahoo.com>
Subject Re: MailLogger
Date Tue, 21 Apr 2009 19:47:26 GMT
So that works great on my local machine (ant 1.7.1).  However, when I put the same exact entries
on my build machine (ant 1.7.0), I get:

MailLogger failed to send e-mail!
java.io.IOException: Unexpected reply to command: HELO buildmachine: 451 4.7.0 Time
out waiting for client input
        at org.apache.tools.mail.MailMessage.send(MailMessage.java:445)
        at org.apache.tools.mail.MailMessage.sendHelo(MailMessage.java:411)
        at org.apache.tools.mail.MailMessage.<init>(MailMessage.java:176)
        at org.apache.tools.ant.listener.MailLogger.sendMail(MailLogger.java:202
)
        at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.jav
a:136)
        at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2008)
        at org.apache.tools.ant.Main.runBuild(Main.java:718)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Seen this before?

Thanks Again,
Eric



________________________________
From: Matt Benson <gudnabrsam@yahoo.com>
To: Ant Users List <user@ant.apache.org>
Sent: Tuesday, April 21, 2009 11:48:07 AM
Subject: Re: MailLogger


Quite sorry--use ANT_ARGS.  I always forget--OPTS is for JVM options; ARGS is for Ant itself. 
:)

-Matt

--- On Tue, 4/21/09, Eric Fetzer <elstonkers@yahoo.com> wrote:

> From: Eric Fetzer <elstonkers@yahoo.com>
> Subject: Re: MailLogger
> To: "Ant Users List" <user@ant.apache.org>
> Date: Tuesday, April 21, 2009, 12:00 PM
> When I run the commandline:
> 
> >ant -f buildfail.xml
> -logger org.apache.tools.ant.listener.MailLogger
> 
> It fails and I get an email.  However, when I add the
> environment variable:
> 
> ANT_OPTS with the value
> -logger org.apache.tools.ant.listener.MailLogger
> 
> I get:
> 
> C:\TestAnt>ant -f buildfail.xml
> Unrecognized option: -logger
> Could not create the Java virtual machine.
> 
> Any help?
> 
> Thanks,
> Eric
> 
> 
> ________________________________
> From: Matt Benson <gudnabrsam@yahoo.com>
> To: Ant Users List <user@ant.apache.org>
> Sent: Monday, April 20, 2009 9:09:49 AM
> Subject: Re: MailLogger
> 
> 
> Yes and no.  You can add whatever parameters you need to
> the ANT_OPTS environment variable on your system, and that
> will be automatically appended to the command line presuming
> you're using the bundled invocation scripts (ant/Unix,
> ant.bat/Windows...).
> 
> HTH,
> Matt
> 
> --- On Mon, 4/20/09, Eric Fetzer <elstonkers@yahoo.com>
> wrote:
> 
> > From: Eric Fetzer <elstonkers@yahoo.com>
> > Subject: MailLogger
> > To: "Ant Users" <user@ant.apache.org>
> > Date: Monday, April 20, 2009, 10:04 AM
> > Sorry, newb question.  Is there a
> > way to tell a build to use MailLogger without adding
> it to
> > the command line?
> > 
> > i.e.:  >ant -logger
> > org.apache.tools.ant.listener.MailLogger
> > 
> > 
> >      
> 
> 
>      
> 
> ---------------------------------------------------------------------
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message