You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2005/10/21 02:57:52 UTC

svn commit: r327061 - /ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java

Author: antoine
Date: Thu Oct 20 17:57:48 2005
New Revision: 327061

URL: http://svn.apache.org/viewcvs?rev=327061&view=rev
Log:
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.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java?rev=327061&r1=327060&r2=327061&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java Thu Oct 20 17:57:48 2005
@@ -27,6 +27,7 @@
 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 @@
                         + " 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);
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org