crossley 01/11/27 17:44:03
Modified: src/org/apache/cocoon/components/resolver ResolverImpl.java
Log:
parseCatalog() now uses pathname to the default catalog which has an
appropriate absolute pathname for the OS and with no leading file:/
PR:5060
Submitted by: Christian Schmitt <[EMAIL PROTECTED]>
Revision Changes Path
1.9 +4 -4
xml-cocoon2/src/org/apache/cocoon/components/resolver/ResolverImpl.java
Index: ResolverImpl.java
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/resolver/ResolverImpl.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ResolverImpl.java 2001/11/25 23:24:31 1.8
+++ ResolverImpl.java 2001/11/28 01:44:03 1.9
@@ -44,7 +44,7 @@
* </resolver>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Davanum Srinivas</a>
- * @version CVS $Revision: 1.8 $ $Date: 2001/11/25 23:24:31 $
+ * @version CVS $Revision: 1.9 $ $Date: 2001/11/28 01:44:03 $
*/
public class ResolverImpl extends AbstractLoggable
implements Resolver, Contextualizable, Composable, Configurable,
ThreadSafe, Disposable {
@@ -94,9 +94,9 @@
String catalogFile = params.getParameter("catalog",
"/resources/entities/catalog");
try {
- String catalogURL =
this.context.getResource(catalogFile).toExternalForm();
- getLogger().debug("System Catalog URL is " + catalogURL);
- catalogResolver.getCatalog().parseCatalog(catalogURL);
+ String catalogFileName =
this.context.getResource(catalogFile).getFile();
+ getLogger().debug("System Catalog file name is " + catalogFileName);
+ catalogResolver.getCatalog().parseCatalog(catalogFileName);
} catch (Exception e) {
getLogger().warn("Could not get Catalog URL", e);
}
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]