ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r357897 - /ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java
Date Tue, 20 Dec 2005 03:58:22 GMT
Author: antoine
Date: Mon Dec 19 19:58:17 2005
New Revision: 357897

URL: http://svn.apache.org/viewcvs?rev=357897&view=rev
Log:
revert encoding of the URI prior to decoding it in Locator#fromURI.
Otherwise FileUtilsTest fail.

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/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/launch/Locator.java?rev=357897&r1=357896&r2=357897&view=diff
==============================================================================
--- 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 Mon Dec 19 19:58:17 2005
@@ -156,11 +156,6 @@
         // things when the path is not absolute, and fall back to the old parsing behavior.
         if (uriClazz != null && uri.startsWith("file:/")) {
             try {
-                uri = encodeUri(uri);
-            } catch (UnsupportedEncodingException e) {
-                //leave as-is?
-            }
-            try {
                 java.lang.reflect.Method createMethod = uriClazz.getMethod("create", new
Class[] {String.class});
                 Object uriObj = createMethod.invoke(null, new Object[] {uri});
                 java.lang.reflect.Constructor fileConst = File.class.getConstructor(new Class[]
{uriClazz});



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


Mime
View raw message