Author: aheritier
Date: Wed Jun  8 22:31:11 2005
New Revision: 189711

URL: http://svn.apache.org/viewcvs?rev=189711&view=rev
Log:
Replace the java call to generate the pdf with the ant task.
Remove a xalan dependency.

Modified:
    maven/maven-1/plugins/trunk/pdf/plugin.jelly

Modified: maven/maven-1/plugins/trunk/pdf/plugin.jelly
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pdf/plugin.jelly?rev=189711&r1=189710&r2=189711&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/pdf/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/pdf/plugin.jelly Wed Jun  8 22:31:11 2005
@@ -192,7 +192,7 @@
     
     <echo>Generating ${internal_pdf_workingDir}/${maven.pdf.pdfName} ...</echo>
     <echo>Config file: ${internal_pdf_workingDir}/userconfig.xml</echo>
-    <java classname="org.apache.fop.apps.Fop" fork="yes" failonerror="true" 
maxmemory="500m">
+    <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
       <classpath>
         <pathelement location="${plugin.getDependencyPath('fop')}"/>
         <pathelement location="${plugin.getDependencyPath('batik')}"/>
@@ -215,17 +215,16 @@
         <pathelement 
location="${plugin.getDependencyPath('batik:batik-xml')}"/>
         <pathelement 
location="${plugin.getDependencyPath('avalon-framework')}"/>
       </classpath>
-      <arg value="-c"/>
-      <arg value="${internal_pdf_workingDir}/userconfig.xml"/>
+    </taskdef>
+   <fop>
+      <ant:setProperty name="basedir" value="${internal_pdf_workingDir}" />
+      <ant:setProperty name="userconfig" 
value="${internal_pdf_workingDir}/userconfig.xml" />
       <if test="${maven.pdf.debug}">
-        <arg value="-d"/>
+        <ant:setProperty name="messagelevel" value="debug" />
       </if>
-      <arg value="-fo"/>
-      <arg value="${internal_pdf_workingDir}/project.fo"/>
-      <arg value="-pdf"/>
-      <arg value="${internal_pdf_workingDir}/${maven.pdf.pdfName}"/>
-      <sysproperty key="javax.xml.transform.TransformerFactory" 
value="org.apache.xalan.processor.TransformerFactoryImpl"/>
-    </java>
+      <ant:setProperty name="fofile" 
value="${internal_pdf_workingDir}/project.fo" />
+      <ant:setProperty name="outfile" 
value="${internal_pdf_workingDir}/${maven.pdf.pdfName}" />
+   </fop>
     <copy todir="${maven.xdoc.dest}" 
file="${internal_pdf_workingDir}/${maven.pdf.pdfName}"/>
   </goal>
 </project>



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

Reply via email to