Browse Source

fix for bad URL parsing code by Uwe Schindler

https://bz.apache.org/bugzilla/show_bug.cgi?id=59130
master
Stefan Bodewig 9 years ago
parent
commit
aeed1d84d3
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Definer.java

+ 4
- 0
WHATSNEW View File

@@ -56,6 +56,10 @@ Fixed bugs:
* Ant fails to run if ANT_HOME contains a double-quote character.
Bugzilla Report 58874

* Definer's way to parse URLs from classloader breaks with
recent Java 9 builds (b108).
Bugzilla Report 59130

Other changes:
--------------



+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Definer.java View File

@@ -256,7 +256,7 @@ public abstract class Definer extends DefBase {
URL url = urls.nextElement();

int fmt = this.format;
if (url.toString().toLowerCase(Locale.ENGLISH).endsWith(".xml")) {
if (url.getPath().toLowerCase(Locale.ENGLISH).endsWith(".xml")) {
fmt = Format.XML;
}



Loading…
Cancel
Save