Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 35169 invoked from network); 18 Sep 2006 13:25:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2006 13:25:07 -0000 Received: (qmail 66197 invoked by uid 500); 18 Sep 2006 13:25:06 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 65986 invoked by uid 500); 18 Sep 2006 13:25:05 -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 65972 invoked by uid 99); 18 Sep 2006 13:25:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 06:25:05 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ddevienne@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 06:24:56 -0700 Received: by nf-out-0910.google.com with SMTP id x29so2598774nfb for ; Mon, 18 Sep 2006 06:24:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XpoPC+/TsbQnLvKqkMIXwUYUnBBC/w7Yu55q8lqJnQzePWtV4h7dbEO9gCkZ395vTzJOza9QhU1iC5TozQfyEeFqBKGwybCuSLCk6uW8eg9IZ0zvobGXAY5Xplu/0KoINuiOSy4xVvYPb/Bk68YiAZAgYEC0ancji9uaukFxLd4= Received: by 10.49.8.4 with SMTP id l4mr16896413nfi; Mon, 18 Sep 2006 06:24:01 -0700 (PDT) Received: by 10.49.64.15 with HTTP; Mon, 18 Sep 2006 06:24:01 -0700 (PDT) Message-ID: <255d8d690609180624xc28e2d3kda678986142d6c08@mail.gmail.com> Date: Mon, 18 Sep 2006 08:24:01 -0500 From: "Dominique Devienne" To: "Ant Developers List" Subject: Re: svn commit: r446979 - in /ant/core/trunk: CONTRIBUTORS WHATSNEW contributors.xml src/main/org/apache/tools/ant/taskdefs/Execute.java In-Reply-To: <20060916234831.B4E841A981C@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060916234831.B4E841A981C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/16/06, peterreilly@apache.org wrote: > bugzilla 28874: make env case insensitive for windows > @@ -624,9 +627,17 @@ > for (int i = 0; i < env.length; i++) { > // Get key including "=" > String key = env[i].substring(0, env[i].indexOf('=') + 1); > + if (environmentCaseInSensitive) { > + // Nb: using default locale as key is a env name > + key = key.toLowerCase(); > + } > int size = osEnv.size(); > for (int j = 0; j < size; j++) { > - if (((String) osEnv.elementAt(j)).startsWith(key)) { > + String osEnvItem = (String) osEnv.elementAt(j); > + if (environmentCaseInSensitive) { > + osEnvItem = osEnvItem.toLowerCase(); > + } > + if (osEnvItem.startsWith(key)) { > osEnv.removeElementAt(j); > break; > } Peter, can you please explain this patch a bit? I've also been bitten by the case of (PATH | Path | path) on Windows in the past, but solved it by assigning the Path's current env key and value to 2 properties, to ensure I was using the same case when assigning it for a sub-process. This is different than forcing env keys to be lower-case (case-insensitive), and that worries me a bit franckly... In my experience, the path *must* be assigned using the same case used by the Ant process, and going to all lower-case doesn't do that. This is critical when forking any process (, , ) that depends on Path (or PATH, or path) to be set properly to run. Thanks for any insight on this. Right-now I worried about this. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org