jboynes 2004/02/21 12:03:24
Modified: modules/deployment/src/java/org/apache/geronimo/deployment
Deployer.java
Log:
Ensure filename is URL encoded
Revision Changes Path
1.9 +3 -3
incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/Deployer.java
Index: Deployer.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/deployment/src/java/org/apache/geronimo/deployment/Deployer.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Deployer.java 20 Feb 2004 21:04:02 -0000 1.8
+++ Deployer.java 21 Feb 2004 20:03:24 -0000 1.9
@@ -298,9 +298,9 @@
private static URL getURL(String location) throws MalformedURLException {
File f = new File(location);
if (f.exists() && f.canRead()) {
- return f.toURL();
+ return f.toURI().toURL();
}
- return new URL(new File(".").toURL(), location);
+ return new File(".").toURI().resolve(location).toURL();
}
private static class Command {