Browse Source

revert to code that compiles pre 1.4

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

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

@@ -396,7 +396,7 @@ public final class Locator {
String path = location.getPath();
for (int i = 0; i < extensions.length; ++i) {
if (path.toLowerCase().endsWith(extensions[i])) {
urls[0] = location.toURI().toURL();
urls[0] = location.toURL();
break;
}
}
@@ -415,9 +415,8 @@ public final class Locator {
});
urls = new URL[matches.length];
for (int i = 0; i < matches.length; ++i) {
urls[i] = matches[i].toURI().toURL();
urls[i] = matches[i].toURL();
}
return urls;
}
}


Loading…
Cancel
Save