Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 85511 invoked from network); 9 Dec 2009 12:43:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 12:43:31 -0000 Received: (qmail 2800 invoked by uid 500); 9 Dec 2009 12:43:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2723 invoked by uid 500); 9 Dec 2009 12:43:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 2713 invoked by uid 99); 9 Dec 2009 12:43:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 12:43:29 +0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=SPF_PASS,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 09 Dec 2009 12:43:20 +0000 Received: (qmail invoked by alias); 09 Dec 2009 12:42:59 -0000 Received: from vpn.citytimenyc.com (EHLO antoine-levy-lamberts-macbook.local) [38.100.172.132] by mail.gmx.net (mp044) with SMTP; 09 Dec 2009 13:42:59 +0100 X-Authenticated: #22961642 X-Provags-ID: V01U2FsdGVkX1/0Ia8vju30UWinDeUOfUqJkQTmVjIvqSUbXVniKk 29hZ+s+VadvAix Message-ID: <4B1F9B50.5080402@gmx.de> Date: Wed, 09 Dec 2009 07:42:56 -0500 From: Antoine Levy Lambert User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Ant Users List Subject: Re: ANT Property substutition in log4j.properties References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-Virus-Checked: Checked by ClamAV on apache.org Hello Jim, log4j understands system properties, not ant properties. So most likely these ANT_ARGS on linux do not set a system property but just an ant property. System properties are copied to ant properties, but the reverse is not true. Using ANT_OPTS=-Dwork.dir=somepath should work on both Windows and Linux. Regards, Antoine Jim Garrison wrote: > When using > > ANT_ARGS="-lib $LOG4J -Dwork.dir=somepath -listener org.apache.tools.ant.listener.Log4jListener" > > where $LOG4J points to a directory containing log4j.jar, with a log4j.properties including: > > log4j.appender.LogFile.file=${work.dir}/build.log > > On Windows ${work.dir} in log4j.properties resolves to the value passed in ANT_ARGS, but on Linux it resovles to the empty string, resulting in trying to write the log file into the root, which of course fails. This is using the exact same binaries of ANT and log4j in both environments. > Any ideas what could cause this? > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org