diff options
author | Kelly Campbell <kellyc@apache.org> | 2001-01-16 08:00:50 +0000 |
---|---|---|
committer | Kelly Campbell <kellyc@apache.org> | 2001-01-16 08:00:50 +0000 |
commit | 8aa012856f348eb5138de60634712b7460420ad6 (patch) | |
tree | 54cbde32ed2063e840aabe1e30adcdbaf41a5d41 /buildtools.xml | |
parent | 20a349e18a7acd5d1f2affd0eded7bb20ed43bb0 (diff) | |
download | xmlgraphics-fop-8aa012856f348eb5138de60634712b7460420ad6.tar.gz xmlgraphics-fop-8aa012856f348eb5138de60634712b7460420ad6.zip |
Packaged build tasks into lib/buildtools.jar
Added buildtools.xml for building the build tools jar file.
Moved source for ant tasks into src/org/apache/fop/tools/anttasks
Set up dual support for Xalan 1 native and Xalan 2 JAXP1.1 transform interfaces.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193970 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildtools.xml')
-rw-r--r-- | buildtools.xml | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/buildtools.xml b/buildtools.xml new file mode 100644 index 000000000..aa1c96d3c --- /dev/null +++ b/buildtools.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> + +<!-- ======================================================================= + + Instructions for building the buildtools.jar: + + Classpath should contain the following: + Xerces 1.2.x + Xalan 1.2.x + Xalan 2.x + xml-fop/lib/ant.jar + + Run "ant -f buildtools.xml" to build a new version of the buildtools jar + +======================================================================= --> + + +<project default="buildtools" basedir="."> + <target name="init"> + <property name="src.dir" value="./src"/> + <property name="build.src" value="./lib/src"/> + <property name="build.dest" value="./lib/classes"/> + + <property name="tools" value="org/apache/fop/tools"/> + <property name="hyph" value="org/apache/fop/layout/hyphenation"/> + <property name="buildtools.jar" value="./lib/buildtools.jar"/> + + <property name="xalan1" value="Xalan1Transform.java"/> + <property name="trax" value="TraxTransform.java"/> + + <available property="trax.present" classname="javax.xml.transform.Transformer"/> + <available property="xalan1.present" classname="org.apache.xalan.xslt.XSLTProcessor"/> + </target> + + <target name="compile" depends="init,prepare.src"> + <mkdir dir="${build.dest}"/> + <javac srcdir="${build.src}" + destdir="${build.dest}"/> + + </target> + + <target name="buildtools" depends="clean,init,compile"> + <echo message="Creating the jar file ${buildtools.jar}"/> + <jar jarfile="${buildtools.jar}" + basedir="${build.dest}" + includes="${tools}/**,${hyph}/**"/> + </target> + + <target name="prepare.src" depends="prepare.xalan1,prepare.trax"> + <copydir src="${src.dir}" + dest="${build.src}" + includes="${tools}/**,${hyph}/**" + excludes="${tools}/anttasks/Fop.java,${hyph}/Hyphenator.java,**/${xalan1},**/${trax}"/> + </target> + + <target name="prepare.xalan1" if="xalan1.present"> + <echo message="Xalan1 is present. Installing Xalan1 support"/> + <copydir src="${src.dir}" + dest="${build.src}" + includes="**/${xalan1}"/> + </target> + + <target name="prepare.trax" if="trax.present"> + <echo message="JAXP1.1 transforms is present. Installing TRaX support"/> + <copydir src="${src.dir}" + dest="${build.src}" + includes="**/${trax}"/> + </target> + + <target name="clean" depends="init"> + <deltree dir="${build.src}"/> + <deltree dir="${build.dest}"/> + </target> + +</project> |