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.

build.xml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0"?>
  2. <project name="loadtime5" default="all" basedir=".">
  3. <import file="../build/build-common.xml"/>
  4. <import file="../asm/build.xml"/>
  5. <import file="../bridge/build.xml"/>
  6. <import file="../loadtime/build.xml"/>
  7. <import file="../weaver/build.xml"/>
  8. <import file="../util/build.xml"/>
  9. <import file="../runtime/build.xml/"/>
  10. <import file="../aspectj5rt/build.xml"/>
  11. <path id="loadtime5.test.src.path">
  12. <fileset dir="${basedir}/../lib">
  13. <include name="junit/*.jar"/>
  14. </fileset>
  15. <path refid="loadtime5.src.path"/>
  16. <pathelement path="../runtime/bin"/>
  17. <pathelement path="../aspectj5rt/bin"/>
  18. <pathelement path="../util/bin"/>
  19. </path>
  20. <path id="loadtime5.src.path">
  21. <pathelement path="../asm/bin"/>
  22. <pathelement path="../bridge/bin"/>
  23. <pathelement path="../loadtime/bin"/>
  24. <pathelement path="../weaver/bin"/>
  25. <fileset dir="${basedir}/../lib">
  26. <include name="bcel/*.jar"/>
  27. </fileset>
  28. </path>
  29. <target name="compile" depends="init,
  30. asm.compile,
  31. bridge.compile,
  32. loadtime.compile,
  33. weaver.compile" if="jdk15">
  34. <!-- FIXME: we override compile due to use of 1.5 -->
  35. <mkdir dir="${basedir}/bin"/>
  36. <javac debug="on" destdir="${basedir}/bin" source="1.5" target="1.5">
  37. <src path="${basedir}/src"/>
  38. <classpath refid="loadtime5.src.path"/>
  39. </javac>
  40. </target>
  41. <target name="test:compile" depends="compile" if="jdk15">
  42. <!-- FIXME sucky deps -->
  43. <antcall target="runtime.compile"/>
  44. <antcall target="aspectj5rt.compile"/>
  45. <!-- FIXME: we override compile due to use of 1.5 -->
  46. <mkdir dir="${basedir}/bintest"/>
  47. <javac debug="on" destdir="${basedir}/bintest" source="1.5" target="1.5">
  48. <src path="${basedir}/testsrc"/>
  49. <classpath refid="loadtime5.test.src.path"/>
  50. </javac>
  51. </target>
  52. <target name="test" depends="test:compile, jar" if="jdk15">
  53. <!-- FIXME sucky deps -->
  54. <antcall target="util.compile"/>
  55. <java fork="true" classname="org.aspectj.weaver.loadtime5.test.AllTests">
  56. <jvmarg line="-javaagent:${build.ajdir}/jars/loadtime5.jar -Daj5.def=../loadtime5/testsrc/aop.xml"/>
  57. <classpath refid="loadtime5.test.src.path"/>
  58. <classpath>
  59. <pathelement path="${basedir}/bintest"/>
  60. </classpath>
  61. </java>
  62. </target>
  63. <target name="jar" depends="compile">
  64. <delete file="${build.ajdir}/jars/loadtime5.jar"/>
  65. <copy file="loadtime5.mf.txt" todir="${build.ajdir}/temp" filtering="yes"/>
  66. <jar destfile="${build.ajdir}/jars/loadtime5.jar" manifest="${build.ajdir}/temp/loadtime5.mf.txt">
  67. <fileset dir="bin">
  68. <include name="**/*"/>
  69. </fileset>
  70. </jar>
  71. </target>
  72. </project>