Browse Source

solve problem refering jars specfied by Class-Path attribute in manifest of a ant task jar file, when this ant task jar file is located in a directory with space. Bugzilla Report 37085.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@327061 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 20 years ago
parent
commit
44cf7f076c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/AntClassLoader.java

+ 2
- 1
src/main/org/apache/tools/ant/AntClassLoader.java View File

@@ -27,6 +27,7 @@ import java.io.Reader;
import java.lang.reflect.Constructor;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
@@ -499,7 +500,7 @@ public class AntClassLoader extends ClassLoader implements SubBuildListener {
+ " loader", Project.MSG_VERBOSE);
continue;
}
File libraryFile = new File(libraryURL.getFile());
File libraryFile = new File(URLDecoder.decode(libraryURL.getFile()));
if (libraryFile.exists() && !isInPath(libraryFile)) {
addPathFile(libraryFile);
}


Loading…
Cancel
Save