RCS file: /home/cvspublic/xml-cocoon2/src/java/org/apache/cocoon/components/language/generator/ProgramGeneratorImpl.java,v
retrieving revision 1.7
diff -u -r1.7 ProgramGeneratorImpl.java
--- ProgramGeneratorImpl.java	7 Feb 2002 04:07:27 -0000	1.7
+++ ProgramGeneratorImpl.java	7 Feb 2002 20:08:16 -0000
@@ -151,7 +151,12 @@
             try {
                 String rootPath = ctx.getRealPath("/");
                 if (rootPath != null) {
-                    this.contextDir = new File(rootPath).toURL().toExternalForm();
+                    if (rootPath.startsWith("zip:")) {
+                        this.contextDir = rootPath;
+                    }
+                    else {
+                        this.contextDir = new File(rootPath).toURL().toExternalForm();
+                    }
                 } else {
                     String webInf = ctx.getResource("/WEB-INF").toExternalForm();
                     this.contextDir = webInf.substring(0, webInf.length() - "WEB-INF".length());


