Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

build.xml 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0"?>
  2. <project name="testing" default="all" basedir=".">
  3. <import file="../build/build-common.xml"/>
  4. <import file="../ajde/build.xml"/>
  5. <import file="../bridge/build.xml"/>
  6. <import file="../taskdefs/build.xml"/>
  7. <path id="testing.test.src.path">
  8. <path refid="testing.src.path"/>
  9. <fileset dir="${basedir}/../lib">
  10. <include name="junit/*.jar"/>
  11. </fileset>
  12. <!-- for test run -->
  13. <pathelement path="../org.aspectj.ajdt.core/bin"/>
  14. <pathelement path="../weaver/bin"/>
  15. <pathelement path="../runtime/bin"/>
  16. <fileset dir="${basedir}/../org.eclipse.jdt.core">
  17. <include name="*.jar"/>
  18. </fileset>
  19. <fileset dir="${basedir}/../lib">
  20. <include name="bcel/*.jar"/>
  21. </fileset>
  22. </path>
  23. <path id="testing.src.path">
  24. <pathelement path="../ajde/bin"/>
  25. <pathelement path="../asm/bin"/>
  26. <pathelement path="../bridge/bin"/>
  27. <pathelement path="../taskdefs/bin"/>
  28. <pathelement path="../testing-util/bin"/>
  29. <pathelement path="../util/bin"/>
  30. <fileset dir="${basedir}/../lib">
  31. <include name="commons/*.jar"/>
  32. </fileset>
  33. <!-- for newsrc -->
  34. <pathelement path="../org.aspectj.ajdt.core/bintest"/>
  35. </path>
  36. <target name="compile" depends="init,
  37. ajde.compile,
  38. asm.compile,
  39. bridge.compile,
  40. taskdefs.compile,
  41. testing-util.compile,
  42. util.compile">
  43. <srccompile project="testing" path="testing.src.path"/>
  44. <!-- newsrc depends on ajdt.test:compile and we cannot use a depends for it due to the way
  45. Ant manage overrides thru <import -->
  46. <testcompile project="weaver" path="weaver.test.src.path"/>
  47. <testcompile project="org.aspectj.ajdt.core" path="org.aspectj.ajdt.core.test.src.path"/>
  48. <javac debug="on" destdir="../testing/bin" source="1.2" target="1.1">
  49. <src path="../testing/newsrc"/>
  50. <classpath refid="testing.src.path"/>
  51. <classpath path="../org.aspectj.ajdt.core/bintest"/>
  52. </javac>
  53. </target>
  54. <target name="test:compile" depends="compile">
  55. <testcompile project="testing" path="testing.test.src.path"/>
  56. </target>
  57. <target name="test" depends="test:compile,
  58. org.aspectj.ajdt.core.compile,
  59. weaver.compile,
  60. runtime.compile">
  61. <testrun project="testing" path="testing.test.src.path" suite="TestingModuleTests"/>
  62. </target>
  63. </project>