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

build.xml 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version='1.0' ?>
  2. <project name="antlib" default="all">
  3. <property name='orig' location='../../..' />
  4. <property name='orig-build' location='${orig}/build' />
  5. <property name='orig-classes' location='${orig-build}/classes' />
  6. <property name='build' location='build' />
  7. <property name='dist' location='dist' />
  8. <property name='classes' location='${build}/classes' />
  9. <property name='testcases' location='src/testcases' />
  10. <property name="debug" value="true" />
  11. <property name="deprecation" value="false" />
  12. <property name="optimize" value="true" />
  13. <target name='init'>
  14. <ant target='build' dir='${orig}' inheritAll='false' />
  15. <mkdir dir='${classes}' />
  16. <copy toDir='${classes}' preservelastmodified='true' >
  17. <fileset dir='${orig-classes}'>
  18. <include name='**' />
  19. <exclude name='org/apache/tools/ant/Project.class' />
  20. <exclude name='org/apache/tools/ant/ProjectHelper.class' />
  21. <exclude name='org/apache/tools/ant/IntrospectionHelper.class' />
  22. <exclude name='org/apache/tools/ant/TaskAdapter.class' />
  23. <exclude name='org/apache/tools/ant/taskdefs/Ant.class' />
  24. </fileset>
  25. </copy>
  26. </target>
  27. <target name='all' depends='init, build' />
  28. <target name='fullbuild' depends='init, compile'>
  29. <ant target='internal_dist' dir='${orig}'>
  30. <property name="build.dir" value="${build}"/>
  31. <property name="dist.dir" value="${dist}"/>
  32. </ant>
  33. </target>
  34. <target name='build' depends='init, compile'>
  35. <ant target='dist-lite' dir='${orig}'>
  36. <property name="build.dir" value="${build}"/>
  37. <property name="dist.dir" value="${dist}"/>
  38. </ant>
  39. </target>
  40. <target name='compile'>
  41. <javac srcdir='src/main' destdir='${classes}'
  42. debug="${debug}"
  43. deprecation="${deprecation}"
  44. optimize="${optimize}">
  45. <include name='**/*.java'/>
  46. </javac>
  47. </target>
  48. <target name='clean'>
  49. <delete dir='${build}' />
  50. </target>
  51. <target name='test'>
  52. <ant dir='${testcases}' inheritAll='false'/>
  53. <ant dir='${testcases}'
  54. antfile='${testcases}/case.xml' inheritAll='false'/>
  55. </target>
  56. <target name='cleanall' depends='clean'>
  57. <delete dir='${dist}' />
  58. </target>
  59. </project>