From abef27d39249b2d0fba64e858239e5f7a7496a93 Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Tue, 20 Dec 2005 03:58:17 +0000 Subject: [PATCH] revert encoding of the URI prior to decoding it in Locator#fromURI. Otherwise FileUtilsTest fail. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@357897 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/launch/Locator.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/launch/Locator.java b/src/main/org/apache/tools/ant/launch/Locator.java index fce9beb52..3dc756033 100644 --- a/src/main/org/apache/tools/ant/launch/Locator.java +++ b/src/main/org/apache/tools/ant/launch/Locator.java @@ -155,11 +155,6 @@ public final class Locator { // do that (just "foo.xml" is correct) but for compatibility we special-case // 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});