Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 16362 invoked from network); 10 Jul 2008 07:40:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 07:40:44 -0000 Received: (qmail 49609 invoked by uid 500); 10 Jul 2008 07:40:44 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 49572 invoked by uid 500); 10 Jul 2008 07:40:43 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 49561 invoked by uid 99); 10 Jul 2008 07:40:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 00:40:43 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 07:39:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KGqlA-0004Sc-Sl for dev@ant.apache.org; Thu, 10 Jul 2008 00:40:12 -0700 Message-ID: <18377522.post@talk.nabble.com> Date: Thu, 10 Jul 2008 00:40:12 -0700 (PDT) From: wheleph To: dev@ant.apache.org Subject: Re: null system properties in buildStarted() In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: wheleph@gmail.com References: <18294458.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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= 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: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org