geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r157019 - geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java
Date Fri, 11 Mar 2005 01:01:41 GMT
Author: djencks
Date: Thu Mar 10 17:01:40 2005
New Revision: 157019

URL: http://svn.apache.org/viewcvs?view=rev&rev=157019
Log:
Idiotic workaround for bizarre openorb url rewriting

Modified:
    geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java

Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java?view=diff&r1=157018&r2=157019
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java
(original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/url/resource/ResourceURLConnection.java
Thu Mar 10 17:01:40 2005
@@ -49,7 +49,11 @@
                 // ignore... somewhat expected, and we are handling this below
             }
         }
-
+        // initial / doesn't work with classLoader.getResource, so if it's present remove
it.
+        // this is a hack but somehow openorb is rewriting our url so the path starts with
a /
+        if (name.startsWith("/")) {
+            name = name.substring(1);
+        }
         if (target == null) {
             // Then try TCL and then SCL
             target = classLoader.getResource(name);



Mime
View raw message