ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <>
Subject Re: MailLogger
Date Tue, 21 Apr 2009 17:00:19 GMT
When I run the commandline:

>ant -f buildfail.xml -logger

It fails and I get an email.  However, when I add the environment variable:

ANT_OPTS with the value -logger

I get:

C:\TestAnt>ant -f buildfail.xml
Unrecognized option: -logger
Could not create the Java virtual machine.

Any help?


From: Matt Benson <>
To: Ant Users List <>
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...).


--- On Mon, 4/20/09, Eric Fetzer <> wrote:

> From: Eric Fetzer <>
> Subject: MailLogger
> To: "Ant Users" <>
> 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


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message