ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wheleph <>
Subject Re: null system properties in buildStarted()
Date Thu, 10 Jul 2008 07:40:12 GMT

Thanks to Stefan for clarification.
As a workaround I use System.getProperty("XmlLogger.level") instead of
event.getProject().getUserProperty("XmlLogger.level") to get the desired
logging level. 
The only problem with this approach is that I have to call Ant via java call
like this: 
"%JAVA_HOME%\bin\java.exe" -classpath
-DXmlLogger.file=build_test_log.xml -DXmlLogger.level=WARN
-Dant.home=%ANT_HOME% -listener

Because ant.bat doesn't set -D<name>=<value> arguments as system properties.
View this message in context:
Sent from the Ant - Dev mailing list archive at

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

View raw message