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.0 kB

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