Browse Source

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
master
Antoine Levy-Lambert 19 years ago
parent
commit
abef27d392
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      src/main/org/apache/tools/ant/launch/Locator.java

+ 0
- 5
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -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});


Loading…
Cancel
Save