aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml-docs/build.xml
diff options
context:
space:
mode:
authorfotis <fotis@unknown>2000-06-23 13:16:43 +0000
committerfotis <fotis@unknown>2000-06-23 13:16:43 +0000
commitb15d38da94b6edb8460c824a38ad42ac5fe9a37a (patch)
tree4b61608d7f58f905a4d9cb5ff4dc807cba20dc3b /docs/xml-docs/build.xml
parentd82981702279d9e3cdc419e0a960ef1f8b488000 (diff)
downloadxmlgraphics-fop-b15d38da94b6edb8460c824a38ad42ac5fe9a37a.tar.gz
xmlgraphics-fop-b15d38da94b6edb8460c824a38ad42ac5fe9a37a.zip
add: xml files with the fop documentation (mirrors files from xml-site) and an ant script to write all into one pdf file
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193436 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/xml-docs/build.xml')
-rw-r--r--docs/xml-docs/build.xml76
1 files changed, 76 insertions, 0 deletions
diff --git a/docs/xml-docs/build.xml b/docs/xml-docs/build.xml
new file mode 100644
index 000000000..c8ea036e6
--- /dev/null
+++ b/docs/xml-docs/build.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+
+<!-- ===========================================================================
+
+
+Build targets
+=============
+
+These are the meaningful targets for this build file:
+
+ - pdf [default] -> creates ./fop.pdf
+ - clean -> deletes all files produced by this script
+
+-->
+
+
+<project default="pdf" basedir=".">
+
+ <!-- =================================================================== -->
+ <!-- Initialization target -->
+ <!-- =================================================================== -->
+ <target name="init">
+ <tstamp/>
+
+ <property name="src.dir" value="./fop"/>
+ <property name="docfile.pdf" value="./fop.pdf"/>
+ <property name="allfiles.xml" value="fop-doc.xml"/>
+ <property name="stylesheet.xsl" value="xml2pdf.xsl"/>
+ <property name="outfile.fo" value="fop-doc.fo"/>
+ <property name="outfile.pdf" value="fop-doc.pdf"/>
+
+ <property name="xslt" value="org.apache.xalan.xslt.Process"/>
+
+ <taskdef name="fop" classname="Fop"/>
+ <taskdef name="collectDocFiles" classname="CollectDocFiles"/>
+ <taskdef name="xslt" classname="Xslt"/>
+
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- compiles all xml files into one and removes the proprietary sbk protocol -->
+ <!-- =================================================================== -->
+ <target name="prepare-files" depends="init">
+ <collectDocFiles configFile="Fop.xml" outFile="fop.pdf"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Generates the fo file -->
+ <!-- =================================================================== -->
+ <target name="fo" depends="prepare-files">
+ <xslt infile="${allfiles.xml}" xsltfile="${stylesheet.xsl}"
+ outfile="${outfile.fo}" smart="yes"/>
+ </target>
+
+
+ <!-- =================================================================== -->
+ <!-- Generates the pdf file -->
+ <!-- =================================================================== -->
+ <target name="pdf" depends="fo">
+ <fop fofile="${outfile.fo}" pdffile="${outfile.pdf}"/>
+ </target>
+
+
+
+ <!-- =================================================================== -->
+ <!-- Clean targets -->
+ <!-- =================================================================== -->
+ <target name="clean">
+ <delete file="${allfiles.xml}"/>
+ <delete file="${outfile.fo}"/>
+ <delete file="${outfile.pdf}"/>
+ </target>
+
+</project>
+
+<!-- End of file -->