ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r395248 - /ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java
Date Wed, 19 Apr 2006 14:11:28 GMT
Author: peterreilly
Date: Wed Apr 19 07:11:26 2006
New Revision: 395248

URL: http://svn.apache.org/viewcvs?rev=395248&view=rev
Log:
compete toUri code for launcher

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java?rev=395248&r1=395247&r2=395248&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java Wed Apr 19 07:11:26
2006
@@ -19,6 +19,7 @@
 import java.net.URL;
 import java.net.URLClassLoader;
 import java.net.MalformedURLException;
+import java.io.UnsupportedEncodingException;
 import java.io.File;
 import java.util.StringTokenizer;
 import java.util.List;
@@ -129,7 +130,11 @@
                 }
             }
 
-            libPathURLs.add(element.toURL());
+            try {
+                libPathURLs.add(new URL(Locator.encodeUri(element.toURL().toString())));
+            } catch (UnsupportedEncodingException ex) {
+                throw new MalformedURLException(ex.toString());
+            }
         }
     }
 



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


Mime
View raw message