ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1039413 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
Date Fri, 26 Nov 2010 15:27:52 GMT
Author: bodewig
Date: Fri Nov 26 15:27:51 2010
New Revision: 1039413

URL: http://svn.apache.org/viewvc?rev=1039413&view=rev
Log:
keep case of env var keys the user has added

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java?rev=1039413&r1=1039412&r2=1039413&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Execute.java Fri Nov 26 15:27:51
2010
@@ -672,12 +672,10 @@ public class Execute {
             if (osEnv.remove(key) == null && environmentCaseInSensitive) {
                 // not found, maybe perform a case insensitive search
 
-                // Nb: using default locale as key is a env name
-                key = key.toLowerCase();
-
                 for (Iterator it = osEnv.keySet().iterator(); it.hasNext(); ) {
                     String osEnvItem = (String) it.next();
-                    if (osEnvItem.toLowerCase().equals(key)) {
+                    // Nb: using default locale as key is a env name
+                    if (osEnvItem.toLowerCase().equals(key.toLowerCase())) {
                         // Use the original casiness of the key
                         key = osEnvItem;
                         break;



Mime
View raw message