Browse Source

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
pull/30/head
Keiron Liddle 22 years ago
parent
commit
429a2d8cfc
1 changed files with 47 additions and 3 deletions
  1. 47
    3
      build.xml

+ 47
- 3
build.xml View File

precompiled version of Ant and the build scripts take care of all the precompiled version of Ant and the build scripts take care of all the
classpath issues except the following: 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 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. property should be set to match the JVM you want to use. That's it.
<include name="fop.sh"/> <include name="fop.sh"/>
</fileset> </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 --> <!-- Initialization target -->
<!-- =================================================================== --> <!-- =================================================================== -->
<property name="conf.dir" value="./conf"/> <property name="conf.dir" value="./conf"/>
<property name="packages" value="org.apache.fop.*"/> <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" value="org.apache.stylebook.StyleBook"/>
<property name="doc.generator.package" value="${lib.dir}/stylebook-1.0-b2.jar"/> <property name="doc.generator.package" value="${lib.dir}/stylebook-1.0-b2.jar"/>


/> />
</target> </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 --> <!-- Creates the distribution -->
<!-- =================================================================== --> <!-- =================================================================== -->

Loading…
Cancel
Save