cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1196075 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java
Date Tue, 01 Nov 2011 16:05:55 GMT
Author: simonetripodi
Date: Tue Nov  1 16:05:55 2011
New Revision: 1196075

URL: http://svn.apache.org/viewvc?rev=1196075&view=rev
Log:
added missing generator binding to parent pipeline

Modified:
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java?rev=1196075&r1=1196074&r2=1196075&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CreateXMLGeneratorRule.java
Tue Nov  1 16:05:55 2011
@@ -21,6 +21,8 @@ package org.apache.cocoon.cli;
 import java.io.File;
 import java.net.URL;
 
+import org.apache.cocoon.pipeline.Pipeline;
+import org.apache.cocoon.sax.SAXPipelineComponent;
 import org.apache.cocoon.sax.component.XMLGenerator;
 import org.apache.commons.digester3.Rule;
 import org.apache.commons.digester3.binder.RuleProvider;
@@ -52,6 +54,15 @@ final class CreateXMLGeneratorRule
         getDigester().push( generator );
     }
 
+    @Override
+    public void end( String namespace, String name )
+        throws Exception
+    {
+        XMLGenerator generator = getDigester().pop();
+        Pipeline<SAXPipelineComponent> pipeline = getDigester().peek();
+        pipeline.addComponent( generator );
+    }
+
     public static class CreateXMLGeneratorRuleProvider
         implements RuleProvider<CreateXMLGeneratorRule>
     {



Mime
View raw message