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
VCS.jar;%ANT_HOME%/lib/ant-launcher.jar;%CLASSPATH%;%ANT_HOME%/lib/ant.jar;
-DXmlLogger.file=build_test_log.xml -DXmlLogger.level=WARN
-Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher -listener
com.kvazarmicro.umc.vcs.utils.CustomXmlLogger

Because ant.bat doesn't set -D<name>=<value> arguments as system properties.
-- 
View this message in context: 
http://www.nabble.com/null-system-properties-in-buildStarted%28%29-tp18294458p18377522.html
Sent from the Ant - Dev mailing list archive at Nabble.com.


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

Reply via email to