jvanzyl 2002/06/26 14:20:57
Added: src/templates/build/plugins/pdf plugin.jelly
plugin.properties
Log:
pdf plugin.
Revision Changes Path
1.1
jakarta-turbine-maven/src/templates/build/plugins/pdf/plugin.jelly
Index: plugin.jelly
===================================================================
<?xml version="1.0"?>
<project xmlns:j="jelly:core">
<goal
name="fo"
prereqs="do-fo"
description="o Generate XSL:FO project documentation"/>
<goal name="do-fo">
<mkdir dir="${maven.docs.dest}"/>
<java classname="org.apache.xalan.xslt.Process" fork="yes">
<classpath>
<pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
<pathelement location="${lib.repo}/xmlParserAPIs-2.0.0.jar"/>
<pathelement location="${lib.repo}/xalan-2.1.0.jar"/>
</classpath>
<arg value="-in"/>
<!-- FIXME: Using ${maven.docs.src} here causes the build to fail because
xalan constructs the path relative to the current directory
even if it is an absolute path. -->
<arg value="xdocs/navigation.xml"/>
<arg value="-out"/>
<arg value="${maven.docs.dest}/project.fo"/>
<arg value="-xsl"/>
<arg value="${maven.home}/stylesheets/project2fo.xslt"/>
<arg value="-param"/>
<arg value="basePath"/>
<arg value="${maven.docs.src}"/>
</java>
</goal>
<goal
name="pdf"
prereqs="fo, do-pdf"
description="o Generate PDF project documentation"/>
<goal name="do-pdf">
<java classname="org.apache.fop.apps.Fop" fork="yes">
<classpath>
<pathelement location="${lib.repo}/fop-0.20.3.jar"/>
<pathelement location="${lib.repo}/batik.jar"/>
<pathelement location="${lib.repo}/logkit-1.0.jar"/>
<pathelement location="${lib.repo}/avalon-framework-4.0.jar"/>
<pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
</classpath>
<arg line="-fo ${maven.docs.dest}/project.fo -pdf
${maven.docs.dest}/project.pdf"/>
</java>
</goal>
</project>
1.1
jakarta-turbine-maven/src/templates/build/plugins/pdf/plugin.properties
Index: plugin.properties
===================================================================
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
# PDF plugin.
# -------------------------------------------------------------------
maven.src.dir = ${basedir}/src
maven.conf.dir = ${basedir}/conf
maven.build.dir = ${basedir}/target
maven.build.src = ${maven.build.dir}/src
maven.build.dest = ${maven.build.dir}/classes
maven.docs.src = ${basedir}/xdocs
maven.docs.dest = ${maven.build.dir}/docs
maven.docs.outputencoding = ISO-8859-1
maven.gen.docs = ${maven.build.dir}/generated-xdocs
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>