Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

buildtools.xml 2.4KB

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