diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-01 12:04:26 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-01 12:04:26 +0000 |
commit | caeb7b6fb44928f710a272d4495a687bd3e353e2 (patch) | |
tree | 27cc524727f2c0c1b55f61387951a37a82cb5ab0 /build.xml | |
parent | 30a93701bf42a2f2ccce3453363458ffaa3e2703 (diff) | |
download | xmlgraphics-fop-caeb7b6fb44928f710a272d4495a687bd3e353e2.tar.gz xmlgraphics-fop-caeb7b6fb44928f710a272d4495a687bd3e353e2.zip |
added targets to build html and corresponding pdf docs
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194533 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 50 |
1 files changed, 47 insertions, 3 deletions
@@ -41,9 +41,9 @@ To make things easier for you, the Fop distribution contains a precompiled version of Ant and the build scripts take care of all the classpath issues except the following: -You need to have xerces.jar, xalan.jar and bsf.jar (comes with xalan) in -your classpath. You can get those from http://xml.apache.org/xerces and -http://xml.apache.org/xalan respectively. +You need to have xerces.jar and xalan.jar in your classpath. You can get +those from http://xml.apache.org/xerces and http://xml.apache.org/xalan +respectively. Additionaly you have to make sure, that the "JAVA_HOME" environment property should be set to match the JVM you want to use. That's it. @@ -152,6 +152,23 @@ Sometimes ant gives out this warnings, but the build is finished without any pro <include name="fop.sh"/> </fileset> + <path id="libs-run-classpath"> + <fileset dir="lib"> + <include name="*.jar"/> + </fileset> + <fileset dir="build"> + <include name="fop.jar"/> + </fileset> + </path> + + <path id="libs-build-classpath"> + <fileset dir="lib"> + <include name="stylebook*.jar"/> + <include name="xalan*.jar"/> + <include name="xerces*.jar"/> + </fileset> + </path> + <!-- =================================================================== --> <!-- Initialization target --> <!-- =================================================================== --> @@ -178,6 +195,9 @@ Sometimes ant gives out this warnings, but the build is finished without any pro <property name="conf.dir" value="./conf"/> <property name="packages" value="org.apache.fop.*"/> + <property name="docs" value="docs/html-docs"/> + <property name="xdocs" value="docs/xml-docs"/> + <property name="skins" value="docs/xml-docs/skins/xml.apache.org/"/> <property name="doc.generator" value="org.apache.stylebook.StyleBook"/> <property name="doc.generator.package" value="${lib.dir}/stylebook-1.0-b2.jar"/> @@ -544,6 +564,30 @@ Sometimes ant gives out this warnings, but the build is finished without any pro /> </target> + <target name="html" depends="javadocs, htmldoc"/> + <target name="htmldoc" depends="prepare-src"> + <copy file="${xdocs}/fop.xml" + tofile="${xdocs}/book.xml" + filtering="on"/> + <java classname="${doc.generator}" fork="yes"> + <classpath refid="libs-build-classpath"/> + <arg line="targetDirectory=${docs} ${xdocs}/book.xml ${skins}"/> + </java> + </target> + + <target name="pdfdoc" depends="package"> + <copy file="${xdocs}/fop.xml" + tofile="${xdocs}/book.xml" + filtering="on"/> + <xslt infile="${xdocs}/fop.xml" xsltfile="${xdocs}/xml2xml.xsl" outfile="${xdocs}/fop-doc.xml" smart="yes"/> + <xslt infile="${xdocs}/fop-doc.xml" xsltfile="${xdocs}/xml2pdf.xsl" outfile="${xdocs}/fop.fo" smart="yes"/> + + <java classname="org.apache.fop.apps.Fop" fork="yes"> + <classpath refid="libs-run-classpath"/> + <arg line="-fo ${xdocs}/fop.fo -pdf ${xdocs}/fop.pdf"/> + </java> + </target> + <!-- =================================================================== --> <!-- Creates the distribution --> <!-- =================================================================== --> |