cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r421574 - /cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java
Date Thu, 13 Jul 2006 10:13:24 GMT
Author: cziegeler
Date: Thu Jul 13 03:13:21 2006
New Revision: 421574

URL: http://svn.apache.org/viewvc?rev=421574&view=rev
Log:
Fix bug: Directory urls must end with a "/"

Modified:
    cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java

Modified: cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java?rev=421574&r1=421573&r2=421574&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java
(original)
+++ cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/AbstractClassLoaderFactory.java
Thu Jul 13 03:13:21 2006
@@ -99,11 +99,14 @@
         while ( i.hasNext() ) {
             // A class dir: simply add its URL
             final String directory = (String)i.next();
-            final URL url = this.getUrl(servletContext, directory);
+            URL url = this.getUrl(servletContext, directory);
             if ( url == null ) {
                 throw new Exception("Directory not found for classpath: " + directory);
             }
             // TODO Should we somehow check if this is a dir?
+            if ( !url.toExternalForm().endsWith("/") ) {
+                url = new URL(url.toExternalForm() + "/");
+            }
             urlList.add(url);
         }
 



Mime
View raw message