Browse Source

-fix problem with windows file uris (stupid "Documents and Settings" bloody folder)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531340 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 18 years ago
parent
commit
a8b79fd315
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/launch/Locator.java

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

@@ -159,7 +159,7 @@ public final class Locator {
try {
java.lang.reflect.Method createMethod
= uriClazz.getMethod("create", new Class[] {String.class});
Object uriObj = createMethod.invoke(null, new Object[] {uri});
Object uriObj = createMethod.invoke(null, new Object[] {encodeURI(uri)});
java.lang.reflect.Constructor fileConst
= File.class.getConstructor(new Class[] {uriClazz});
File f = (File) fileConst.newInstance(new Object[] {uriObj});


Loading…
Cancel
Save