ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r533024 - /ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java
Date Fri, 27 Apr 2007 09:03:27 GMT
Author: kevj
Date: Fri Apr 27 02:03:26 2007
New Revision: 533024

URL: http://svn.apache.org/viewvc?view=rev&rev=533024
Log:
-fix for bug #42227

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java?view=diff&rev=533024&r1=533023&r2=533024
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java Fri Apr 27 02:03:26 2007
@@ -163,7 +163,8 @@
                 java.lang.reflect.Constructor fileConst
                     = File.class.getConstructor(new Class[] {uriClazz});
                 File f = (File) fileConst.newInstance(new Object[] {uriObj});
-                return f.getAbsolutePath();
+                //bug #42227 forgot to decode before returning
+                return decodeUri(f.getAbsolutePath());
             } catch (java.lang.reflect.InvocationTargetException e) {
                 Throwable e2 = e.getTargetException();
                 if (e2 instanceof IllegalArgumentException) {
@@ -253,6 +254,7 @@
         }
         return sb.toString(URI_ENCODING);
     }
+    
     /**
      * Encodes an Uri with % characters.
      * The URI is escaped



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message