maven-plugins/pdf/plugin.jelly
kaz 3a77109f47 Updating some more plugins that were referring to maven.docs.dest
property from the xdoc plugin.  These have been updated to use the new
method of accessing properties in other plugins.  While cleaning this
up, I also noticed a handful of other repetitive properties in
plugin.properties files, which I also removed/cleaned.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112744 13f79535-47bb-0310-9956-ffa450edef68
2003-01-25 18:19:55 +00:00

77 lines
2.5 KiB
XML

<?xml version="1.0"?>
<project xmlns:j="jelly:core">
<goal
name="pdf:init"
prereqs="xdoc:init">
<j:set var="docsDest"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.dest')}"/>
<j:set var="docsSrc"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.docs.src')}"/>
</goal>
<goal
name="fo"
prereqs="fo:fo"
description="Generate XSL:FO project documentation"/>
<goal name="fo:fo"
prereqs="pdf:init"
description="Generate XSL:FO project documentation">
<echo>Generating ${docsDest}/project.fo ...</echo>
<available file="${docsSrc}/navigation.xml"
property="maven.fo.navigation.available"/>
<fail message="PDF generation cannot complete as ${docsSrc}/navigation.xml is missing"
unless="maven.fo.navigation.available"/>
<java classname="org.apache.xalan.xslt.Process" fork="yes" failonerror="true">
<classpath>
<pathelement location="${plugin.getDependencyPath('xerces')}"/>
<pathelement location="${plugin.getDependencyPath('xml-apis')}"/>
<pathelement location="${plugin.getDependencyPath('xalan')}"/>
</classpath>
<sysproperty key="user.language" value="en"/>
<arg value="-in"/>
<arg value="file://${docsSrc}/navigation.xml"/>
<arg value="-out"/>
<arg value="${docsDest}/project.fo"/>
<arg value="-xsl"/>
<arg value="file://${plugin.resources}/project2fo.xslt"/>
<arg value="-param"/>
<arg value="basePath"/>
<arg value="${docsSrc}"/>
</java>
</goal>
<goal
name="pdf"
prereqs="pdf:pdf"
description="Generate PDF project documentation"/>
<goal name="pdf:pdf" description="Generate PDF project documentation"
prereqs="pdf:inif, fo">
<echo>Generating ${docsDest}/project.pdf ...</echo>
<java classname="org.apache.fop.apps.Fop" fork="yes" failonerror="true">
<classpath>
<pathelement location="${plugin.getDependencyPath('fop')}"/>
<pathelement location="${plugin.getDependencyPath('batik')}"/>
<pathelement location="${plugin.getDependencyPath('logkit')}"/>
<pathelement location="${plugin.getDependencyPath('avalon-framework')}"/>
<pathelement location="${plugin.getDependencyPath('xerces')}"/>
</classpath>
<arg value="-d" />
<arg value="-fo" />
<arg value="${docsDest}/project.fo" />
<arg value="-pdf" />
<arg value="${docsDest}/project.pdf"/>
</java>
</goal>
</project>