Hi

Is it possible to extend the Loader class to allow passing of
resource directories to the URLClassLoader as specified in

http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLClassLoader.html

I'm trying to update the Jetty implementation to 5.1.4 for Lenya,
including support for JNDI which needs configuration files as
resources.

The changes would be:

Index: tools/src/loader/Loader.java
===================================================================
--- tools/src/loader/Loader.java        (revision 328297)
+++ tools/src/loader/Loader.java        (working copy)
@@ -59,6 +59,11 @@
                     }
                 }
             }
+            try {
+                super.addURL(repository.toURL());
+            } catch (MalformedURLException e) {
+                throw new IllegalArgumentException(e.toString());
+            }
         }
     }


Thanks, Felix


--
Felix Röthenbacher                  [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

Reply via email to