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 3.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <project default="jars">
  2. <property name="src.dir" value="src/main"/>
  3. <property name="component.src.dir" value="${src.dir}/org/apache/ant/component"/>
  4. <property name="build.dir" value="build"/>
  5. <property name="build.classes" value="build/classes"/>
  6. <property name="component.classes.dir" value="org/apache/ant/component"/>
  7. <property name="build.javadocs" value="build/javadocs"/>
  8. <property name="build.lib" value="${build.dir}/lib"/>
  9. <property name="frontend.manifest" value="${src.dir}/org/apache/ant/frontend/manifest.mf"/>
  10. <property name="egg.manifest" value="${src.dir}/org/apache/ant/frontend/eggmanifest.mf"/>
  11. <target name="compile">
  12. <mkdir dir="${build.classes}"/>
  13. <depend srcdir="${src.dir}"
  14. destdir="${build.classes}" closure="yes"
  15. cache="${build.dir}/depcache"/>
  16. <javac srcdir="${src.dir}"
  17. destdir="${build.classes}"
  18. deprecation="true"
  19. debug="true"/>
  20. </target>
  21. <target name="build-task">
  22. <echo message="building Task jar from ${component.classes.dir}/${taskset}/**/*.class"/>
  23. <jar jarfile="${build.lib}/task/${taskset}.tsk"
  24. basedir="${build.classes}">
  25. <zipfileset dir="${component.src.dir}/${taskset}"
  26. prefix="ANT-INF"
  27. includes="antlib.xml"/>
  28. <include name="${component.classes.dir}/${taskset}/**/*.class" />
  29. </jar>
  30. </target>
  31. <target name="jars" depends="compile">
  32. <mkdir dir="${build.lib}"/>
  33. <mkdir dir="${build.lib}/task"/>
  34. <jar jarfile="${build.lib}/frontend.jar"
  35. basedir="${build.classes}"
  36. manifest="${frontend.manifest}">
  37. <include name="org/apache/ant/frontend/*.class" />
  38. </jar>
  39. <jar jarfile="${build.lib}/egg.jar"
  40. basedir="${build.classes}"
  41. manifest="${egg.manifest}">
  42. <include name="org/apache/ant/frontend/RemoteLauncher.class" />
  43. <include name="org/apache/ant/core/support/AntClassLoader.class" />
  44. </jar>
  45. <jar jarfile="${build.lib}/core.jar"
  46. basedir="${build.classes}">
  47. <include name="org/apache/ant/core/**/*.class" />
  48. </jar>
  49. <antcall target="build-task">
  50. <param name="taskset" value="core"/>
  51. </antcall>
  52. <antcall target="build-task">
  53. <param name="taskset" value="file"/>
  54. </antcall>
  55. <antcall target="build-task">
  56. <param name="taskset" value="thread"/>
  57. </antcall>
  58. <copy todir="${build.lib}">
  59. <fileset dir="lib"/>
  60. </copy>
  61. </target>
  62. <target name="clean">
  63. <delete dir="${build.dir}"/>
  64. </target>
  65. <target name="javadoc">
  66. <mkdir dir="${build.javadocs}"/>
  67. <javadoc packagenames="org.apache.*"
  68. sourcepath="${src.dir}"
  69. destdir="${build.javadocs}"
  70. author="true"
  71. version="true"
  72. windowtitle="Ant 2.0 API"
  73. doctitle="Ant 2.0"
  74. private="true"
  75. bottom="Copyright &#169; 2001 Apache Software Foundation. All Rights Reserved.">
  76. <group title="Ant Core" packages="org.apache.ant.core*" />
  77. <group title="Front End" packages="org.apache.ant.frontend*" />
  78. <group title="XML Parsing" packages="org.apache.ant.xml*" />
  79. </javadoc>
  80. </target>
  81. </project>