This seems to have broken the build:

compile-core:
Copying 40 files to C:\cocoon5\build\cocoon-2.1.4-dev\classes
Copied 70 empty directories to 38 empty directories under C:\cocoon5\build\cocoo
n-2.1.4-dev\classes
Created dir: C:\cocoon5\build\cocoon-2.1.4-dev\mocks
Compiling 1 source file to C:\cocoon5\build\cocoon-2.1.4-dev\mocks
Compiling 559 source files to C:\cocoon5\build\cocoon-2.1.4-dev\classes
C:\cocoon5\src\java\org\apache\cocoon\environment\ForwardRedirector.java:138: ca
nnot resolve symbol
symbol : variable COCOON_REDIRECT_ATTR
location: class org.apache.cocoon.components.treeprocessor.TreeProcessor
this.env.setAttribute(TreeProcessor.COCOON_REDIRECT_ATTR, uri);
^

Also wouldn't it make more sense to have ForwardRedirector define this constant rather than TreeProcessor so that ForwardRedirector need not have a dependency on TreeProcessor?


[EMAIL PROTECTED] wrote:

sylvain 2004/01/18 14:27:26

Modified: src/java/org/apache/cocoon/environment
ForwardRedirector.java
Log:
Internal redirects "cocoon:" are now processed immediately (previously, redirecting was only setting a flag handled at the end of the tree processing)
Revision Changes Path
1.11 +3 -3 cocoon-2.1/src/java/org/apache/cocoon/environment/ForwardRedirector.java
Index: ForwardRedirector.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/ForwardRedirector.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ForwardRedirector.java 14 Nov 2003 18:57:43 -0000 1.10
+++ ForwardRedirector.java 18 Jan 2004 22:27:26 -0000 1.11
@@ -72,7 +72,7 @@
private boolean hasRedirected = false;
/** The <code>Environment to use for redirection (either internal or external) */
- private Environment env;
+ protected Environment env;
public ForwardRedirector(Environment env) {
this.env = env;
@@ -133,7 +133,7 @@
this.hasRedirected = true;
}
- private void cocoonRedirect(String uri) {
+ protected void cocoonRedirect(String uri) throws IOException, ProcessingException {
// Simply notify the Processor.
this.env.setAttribute(TreeProcessor.COCOON_REDIRECT_ATTR, uri);
}






Reply via email to