cziegeler 02/04/26 05:33:38 Modified: src/java/org/apache/cocoon/components/treeprocessor TreeProcessor.java Log: Adding check-reload behaviour to treeprocessor Revision Changes Path 1.8 +3 -3 xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/TreeProcessor.java Index: TreeProcessor.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/TreeProcessor.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- TreeProcessor.java 26 Apr 2002 12:30:52 -0000 1.7 +++ TreeProcessor.java 26 Apr 2002 12:33:38 -0000 1.8 @@ -96,7 +96,7 @@ * Interpreted tree-traversal implementation of a pipeline assembly language. * * @author <a href="mailto:[EMAIL PROTECTED]">Sylvain Wallez</a> - * @version CVS $Id: TreeProcessor.java,v 1.7 2002/04/26 12:30:52 cziegeler Exp $ + * @version CVS $Id: TreeProcessor.java,v 1.8 2002/04/26 12:33:38 cziegeler Exp $ */ public class TreeProcessor extends AbstractLoggable implements ThreadSafe, Processor, @@ -308,7 +308,8 @@ CocoonComponentManager.enterEnvironment(environment, environment.getObjectModel(), this); try { - if (this.rootNode == null || this.source.getLastModified() > this.lastModified) { + if (this.rootNode == null || + (this.checkReload == true && this.source.getLastModified() > this.lastModified)) { setupRootNode(environment); } return this.rootNode.invoke(environment, context); @@ -342,7 +343,6 @@ if (this.fileName == null) { this.fileName = builder.getFileName(); } - System.out.println("Reading file: " + this.fileName); if (this.source == null) { // FIXME : make the delay configurable
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]