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 17:49:25 GMT
Cool, thanks.




________________________________
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