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 <[email protected]> To: Ant Users List <[email protected]> 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 <[email protected]> wrote: > From: Eric Fetzer <[email protected]> > Subject: MailLogger > To: "Ant Users" <[email protected]> > 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: [email protected] For additional commands, e-mail: [email protected]
