No.

Loggers are attached while checking the command line arguments and _before_ Ant 
runs.
Ant doesnt know anything about registered loggers - it just sends log messages 
to an interface.

What you could do is setting the environment variable ANT_OPTS to your "-logger 
..." setting.
You could do that for the whole system or use the script files
        "%HOME%\antrc_pre.bat" 
        "%HOME%\antrc_post.bat"
for doing advanced things (something like "if %CD%==projectA set 
ANT_OPTS=loggerFoo")


Jan 


>-----Ursprüngliche Nachricht-----
>Von: Steven Anderson [mailto:[EMAIL PROTECTED] 
>Gesendet: Donnerstag, 11. Mai 2006 00:22
>An: user@ant.apache.org
>Betreff: Define the logger in a properties file?
>
>I'd like to use org.apache.tools.ant.XmlLogger for all my 
>builds, so I'd like to have it in my build.properties file 
>rather than having to call it as a command-line option.  I 
>couldn't find a property for doing this, though.
>
>
>Is it possible to define the logger in a properties file/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to