stefano 99/12/02 03:49:25
Modified: src/org/apache/cocoon Cocoon.java EngineWrapper.java
Log:
stupid bugs that prevented compilation
Revision Changes Path
1.4 +3 -3 xml-cocoon/src/org/apache/cocoon/Cocoon.java
Index: Cocoon.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Cocoon.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Cocoon.java 1999/11/09 02:29:04 1.3
+++ Cocoon.java 1999/12/02 11:49:24 1.4
@@ -1,4 +1,4 @@
-/*-- $Id: Cocoon.java,v 1.3 1999/11/09 02:29:04 dirkx Exp $ --
+/*-- $Id: Cocoon.java,v 1.4 1999/12/02 11:49:24 stefano Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -64,7 +64,7 @@
* separate different knowledge contexts in different processing layers.
*
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version $Revision: 1.3 $ $Date: 1999/11/09 02:29:04 $
+ * @version $Revision: 1.4 $ $Date: 1999/12/02 11:49:24 $
*/
public class Cocoon extends HttpServlet implements Defaults {
@@ -204,7 +204,7 @@
out = argument[i];
EngineWrapper engine = new EngineWrapper(new Configurations(properties));
- engine.handle(new PrintWriter(new FileWriter(out), true), xml);
+ engine.handle(new PrintWriter(new FileWriter(out), true), new File(xml));
}
private static void usage() {
1.5 +7 -7 xml-cocoon/src/org/apache/cocoon/EngineWrapper.java
Index: EngineWrapper.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/EngineWrapper.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- EngineWrapper.java 1999/12/01 11:27:48 1.4
+++ EngineWrapper.java 1999/12/02 11:49:24 1.5
@@ -1,4 +1,4 @@
-/*-- $Id: EngineWrapper.java,v 1.4 1999/12/01 11:27:48 stefano Exp $ --
+/*-- $Id: EngineWrapper.java,v 1.5 1999/12/02 11:49:24 stefano Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -70,7 +70,7 @@
* But I have more important stuff to do right now.
*
* @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
- * @version $Revision: 1.4 $ $Date: 1999/12/01 11:27:48 $
+ * @version $Revision: 1.5 $ $Date: 1999/12/02 11:49:24 $
*/
public class EngineWrapper extends Engine {
@@ -94,16 +94,16 @@
*/
public class HttpServletRequestImpl implements HttpServletRequest {
- private String pathTranslated = "/";
+ private String path = "/";
private String document = null;
public HttpServletRequestImpl(File path) {
this(path, null);
}
- public HttpServletRequestImpl(File pathTranslated, String document) {
+ public HttpServletRequestImpl(File path, String document) {
if (path != null) {
- this.pathTranslated = pathTranslated.toString();
+ this.path = path.toString();
}
if (document != null) {
@@ -112,7 +112,7 @@
}
public String getPathTranslated() {
- return this.pathTranslated;
+ return this.path;
}
// FIXME: this is a quick hack to make command line operation work
@@ -120,7 +120,7 @@
public String getPathInfo() { return ""; }
public String getParameter(String name) {
- if ((data != null) && (name.equalsIgnoreCase("producer"))) {
+ if ((document != null) && (name.equalsIgnoreCase("producer"))) {
return "org.apache.cocoon.producer.ProducerFromRequest";
} else {
return null;
|