Hi All,

Attached is a diff for the build.xml file and two serializers cannibalised
from the fo2pdf one.

If anybody else is interested I'd like to refactor this code into a base fop
class with derivitations for the actual output type we want from fop... any
takers?

J.



=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
Index: build.xml
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/build.xml,v
retrieving revision 1.45
diff -u -r1.45 build.xml
--- build.xml   2001/08/04 13:32:35     1.45
+++ build.xml   2001/08/09 09:47:43
@@ -396,6 +396,8 @@
       <exclude name="**/Javascript*"         unless="rhino.present"/>
       <exclude name="**/Jstyle*"             unless="jstyle.present"/>
       <exclude name="**/FOP*"                unless="fop.present"/>
+      <exclude name="**/serialization/PCL*"  unless="fop.present"/>
+      <exclude name="**/serialization/PS*"   unless="fop.present"/>
       <exclude name="**/Php*"                unless="php.present"/>
       <exclude name="**/HTMLGenerator.java"  unless="tidy.present"/>
       <exclude name="**/J2eeDataSource.java" unless="j2ee.present"/>
@@ -565,11 +567,23 @@
   <!-- =================================================================== -->
   <target name="prepare-webapp-fop" depends="copy-webapp" if="fop.present">
     <java classname="st">
-        <arg line="-i ${build.war}/sitemap.xmap -o ${build.war}/sitemap.xmap -m 
application/pdf -a serializers fo2pdf org.apache.cocoon.serialization.FOPSerializer"/>
+        <arg line="-i ${build.war}/sitemap.xmap -o ${build.war}/sitemap.xmap -m 
+application/pdf         -a serializers fo2pdf 
+org.apache.cocoon.serialization.FOPSerializer"/>
         <classpath>
           <pathelement location="${bin.dir}"/>
         </classpath>
     </java>
+    <java classname="st">
+        <arg line="-i ${build.war}/sitemap.xmap -o ${build.war}/sitemap.xmap -m 
+application/ps          -a serializers fo2ps  
+org.apache.cocoon.serialization.PSSerializer"/>
+        <classpath>
+          <pathelement location="${bin.dir}"/>
+        </classpath>
+    </java>
+    <java classname="st">
+        <arg line="-i ${build.war}/sitemap.xmap -o ${build.war}/sitemap.xmap -m 
+'application/vnd.hp-PCL' -a serializers fo2pcl 
+org.apache.cocoon.serialization.PCLSerializer"/>
+        <classpath>
+          <pathelement location="${bin.dir}"/>
+        </classpath>
+    </java>    
   </target>
 
   <!-- =================================================================== -->

PCLSerializer.java

PSSerializer.java

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to