cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1195928 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineDescriptorModule.java
Date Tue, 01 Nov 2011 11:12:02 GMT
Author: simonetripodi
Date: Tue Nov  1 11:12:01 2011
New Revision: 1195928

URL: http://svn.apache.org/viewvc?rev=1195928&view=rev
Log:
added serializer binding rules

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

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineDescriptorModule.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineDescriptorModule.java?rev=1195928&r1=1195927&r2=1195928&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineDescriptorModule.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/PipelineDescriptorModule.java
Tue Nov  1 11:12:01 2011
@@ -20,6 +20,7 @@ package org.apache.cocoon.cli;
 
 import org.apache.cocoon.cli.CreateXMLGeneratorRule.CreateXMLGeneratorRuleProvider;
 import org.apache.cocoon.cli.PipelineCreateRule.PipelineCreateRuleProvider;
+import org.apache.cocoon.sax.component.XMLSerializer;
 import org.apache.commons.digester3.binder.AbstractRulesModule;
 
 /**
@@ -39,6 +40,10 @@ final class PipelineDescriptorModule
                 .addAlias( "default", "defaultId" );
         forPattern( "pipelines/pipeline" ).addRuleCreatedBy( new PipelineCreateRuleProvider()
);
         forPattern( "pipelines/pipeline/generator" ).addRuleCreatedBy( new CreateXMLGeneratorRuleProvider()
);
+        forPattern( "pipelines/pipeline/serializer" )
+            .createObject().ofType( XMLSerializer.class )
+            .then()
+            .setProperties();
     }
 
 }



Mime
View raw message