geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r224406 - /geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java
Date Fri, 22 Jul 2005 21:48:31 GMT
Author: djencks
Date: Fri Jul 22 14:48:29 2005
New Revision: 224406

URL: http://svn.apache.org/viewcvs?rev=224406&view=rev
Log:
GERONIMO-642 uri with spaces problem

Modified:
    geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java

Modified: geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java?rev=224406&r1=224405&r2=224406&view=diff
==============================================================================
--- geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java
(original)
+++ geronimo/branches/v1_0_M4-QA/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebAppContext.java
Fri Jul 22 14:48:29 2005
@@ -183,7 +183,13 @@
 
         setConfigurationClassNames(new String[]{});
 
-        URI root = URI.create(configurationBaseUrl.toString());
+        URI root = null;
+        //TODO is there a simpler way to do this?
+        if (configurationBaseUrl.getProtocol().equalsIgnoreCase("file")) {
+            root = new URI("file", configurationBaseUrl.getPath(), null);
+        } else {
+            root = URI.create(configurationBaseUrl.toString());
+        }
         webAppRoot = root.resolve(uri);
         URL webAppRootURL = webAppRoot.toURL();
 



Mime
View raw message