You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

buildtools.xml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0"?>
  2. <!-- =======================================================================
  3. Instructions for building the buildtools.jar:
  4. Classpath should contain the following:
  5. Xerces 1.4.x
  6. Xalan 2.x
  7. xml-fop/lib/ant.jar
  8. Run "ant -f buildtools.xml" to build a new version of the buildtools jar
  9. ======================================================================= -->
  10. <project default="buildtools" basedir=".">
  11. <target name="init">
  12. <property name="src.dir" value="./src"/>
  13. <property name="build.src" value="./lib/src"/>
  14. <property name="build.dest" value="./lib/classes"/>
  15. <property name="tools" value="org/apache/fop/tools"/>
  16. <property name="hyph" value="org/apache/fop/layout/hyphenation"/>
  17. <property name="buildtools.jar" value="./lib/buildtools.jar"/>
  18. <property name="trax" value="TraxTransform.java"/>
  19. <available property="trax.present" classname="javax.xml.transform.Transformer"/>
  20. </target>
  21. <target name="compile" depends="init,prepare.src">
  22. <mkdir dir="${build.dest}"/>
  23. <javac srcdir="${build.src}"
  24. destdir="${build.dest}"/>
  25. </target>
  26. <target name="buildtools" depends="clean,init,compile">
  27. <echo message="Creating the jar file ${buildtools.jar}"/>
  28. <jar jarfile="${buildtools.jar}"
  29. basedir="${build.dest}"
  30. includes="${tools}/**,${hyph}/**"/>
  31. </target>
  32. <target name="prepare.src" depends="prepare.trax">
  33. <copy todir="${build.src}">
  34. <fileset dir="${src.dir}"
  35. includes="${tools}/**,${hyph}/**"
  36. excludes="${tools}/anttasks/Fop.java,${tools}/TestConverter.java,${tools}/AreaTreeBuilder.java,${hyph}/Hyphenator.java,**/${trax}"/>
  37. </copy>
  38. </target>
  39. <target name="prepare.trax" if="trax.present">
  40. <echo message="JAXP1.1 transforms is present. Installing TRaX support"/>
  41. <copy todir="${build.src}">
  42. <fileset dir="${src.dir}"
  43. includes="**/${trax}"/>
  44. </copy>
  45. </target>
  46. <target name="clean" depends="init">
  47. <delete dir="${build.src}"/>
  48. <delete dir="${build.dest}"/>
  49. </target>
  50. </project>