jtaylor 02/03/26 06:08:13
Modified: . build-bootstrap.xml build.xml
src/templates/build build-docs.xml build.xml
Log:
Targets to generate PDF so that jason and/or pete can hack at them.
maven:pdf in the main build file delegates to doc:pdf in build-docs.xml.
FOP has a lot of dependencies, but keeps its own classpath so you only need
them if you want to generate a PDF.
Also, this uses the <style> target, I expect jason will change that.
Revision Changes Path
1.53 +4 -0 jakarta-turbine-maven/build-bootstrap.xml
Index: build-bootstrap.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/build-bootstrap.xml,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- build-bootstrap.xml 26 Mar 2002 04:39:07 -0000 1.52
+++ build-bootstrap.xml 26 Mar 2002 14:08:13 -0000 1.53
@@ -122,6 +122,10 @@
<fileset dir="src/dvsl/gump"/>
</copy>
+ <copy todir="${maven.home}/stylesheets">
+ <fileset dir="src/xslt"/>
+ </copy>
+
<copy todir="${maven.home}/templates/project">
<fileset dir="src/templates/project"/>
</copy>
1.16 +4 -0 jakarta-turbine-maven/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/build.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- build.xml 14 Mar 2002 22:23:35 -0000 1.15
+++ build.xml 26 Mar 2002 14:08:13 -0000 1.16
@@ -63,6 +63,10 @@
<target name="maven:site">
<ant antfile="${maven.home}/build-docs.xml" target="site"/>
</target>
+
+ <target name="maven:pdf">
+ <ant antfile="${maven.home}/build-docs.xml" target="docs:pdf"/>
+ </target>
<target name="maven:jar">
<ant antfile="${maven.home}/build-maven.xml" target="jar"/>
1.38 +47 -18 jakarta-turbine-maven/src/templates/build/build-docs.xml
Index: build-docs.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build-docs.xml,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- build-docs.xml 25 Mar 2002 22:43:14 -0000 1.37
+++ build-docs.xml 26 Mar 2002 14:08:13 -0000 1.38
@@ -29,13 +29,13 @@
description="o Generate html project documentation xdoc sources">
</target>
- <target
+ <target
name="jdepend-metrics"
description="o Generiates html from jdepend metrics">
<ant antfile="$mavenDirectory/build-metrics.xml" target="jdepend-xml"/>
</target>
- <target
+ <target
name="junit-report"
description="o Generiates xdoc from junit test case runs">
<ant antfile="$mavenDirectory/build-test.xml" target="junit-xml"/>
@@ -48,17 +48,16 @@
<target
name="cross-ref"
depends="local-init">
-
<jxr
startDir="src"
destDir="${docs.dest}/xref"
imageFolder="${maven.home}/images/folder.gif"
imageFile="${maven.home}/images/file.gif">
</jxr>
-
+
<!-- The last two parameters don't really matter but the
task craps out if they aren't there. -->
-
+
</target>
<!-- ================================================================== -->
@@ -75,7 +74,7 @@
output="${gen.docs}/changelog.xml"
days="5"
/>
-
+
</target>
<!-- ================================================================== -->
@@ -247,6 +246,36 @@
</copy>
</target>
+ <target
+ name="docs:pdf"
+ depends="init"
+ description="o Generate pdf project documentation xdoc sources">
+
+ <mkdir dir="${docs.dest}"/>
+
+ <style
+ basedir="${docs.src}"
+ destdir="${docs.dest}"
+ force="true"
+ in="${docs.src}/project.xml"
+ out="${docs.dest}/project.fo"
+ style="${maven.home}/stylesheets/project2fo.xslt">
+ <param name="basePath" expression="${docs.src}"/>
+ </style>
+
+ <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 ${docs.dest}/project.fo -pdf ${docs.dest}/project.pdf"/>
+ </java>
+
+ </target>
+
<!-- ================================================================== -->
<!-- S I T E -->
<!-- ================================================================== -->
@@ -259,19 +288,19 @@
<!-- ================================================================== -->
<!-- D E P L O Y S I T E -->
<!-- ================================================================== -->
-
- <target
- name="deploy-site"
+
+ <target
+ name="deploy-site"
depends="site">
-
+
<echo>
siteAddress = ${siteAddress}
siteDirectory = ${siteDirectory}
</echo>
-
+
<!-- This needs to taken from the project properties -->
<property name="homepage" value="${siteDirectory}"/>
-
+
<tar tarfile="${project}-site.tar" basedir="${docs.dest}"/>
<gzip zipfile="${project}-site.tar.gz" src="${project}-site.tar"/>
<delete file="${project}-site.tar"/>
@@ -286,7 +315,7 @@
</exec>
<delete file="${project}-site.tar.gz"/>
-
+
</target>
<!-- ================================================================== -->
@@ -302,12 +331,12 @@
<tstamp>
<format property="year" pattern="${inceptionYear}-yyyy"/>
</tstamp>
-
- <property
- name="copyright"
+
+ <property
+ name="copyright"
value="Copyright &copy; ${year} ${organization}. All Rights Reserved."
/>
-
+
<echo>
javadoc.destdir = ${javadoc.destdir}
package = ${package}
@@ -319,7 +348,7 @@
javadoc.doctitle = ${javadoc.doctitle}
copyright = ${copyright}
</echo>
-
+
<javadoc
sourcepathref="src.set"
packagenames="${package}.*"
1.25 +5 -0 jakarta-turbine-maven/src/templates/build/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- build.xml 26 Mar 2002 04:48:53 -0000 1.24
+++ build.xml 26 Mar 2002 14:08:13 -0000 1.25
@@ -42,6 +42,11 @@
name="maven:docs">
<ant antfile="$mavenDirectory/build-docs.xml" target="docs"/>
</target>
+
+ <target
+ name="maven:pdf">
+ <ant antfile="$mavenDirectory/build-docs.xml" target="docs:pdf"/>
+ </target>
<target
name="maven:test">
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>