cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: SitemapPathModule
Date Mon, 20 Sep 2004 09:24:24 GMT
   Date: 2004-09-20T02:24:24
   Editor: NicoVerwer <nverwer@email.com>
   Wiki: Cocoon Wiki
   Page: SitemapPathModule
   URL: http://wiki.apache.org/cocoon/SitemapPathModule

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -45,7 +45,8 @@
     FileSource source;
     try {
       source = (FileSource) resolver.resolveURI(name);
-      return source.getFile().getCanonicalPath();
+      return source.getURI().substring(5); // Without "file:" prefix.
+      // return source.getFile().getCanonicalPath(); Does not work on Windows when turned
into a file: URL
     } catch (Exception e) {
       throw new ConfigurationException(e.toString());
     }

Mime
View raw message