1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?xml version="1.0"?>
- <project name="testing" default="all" basedir=".">
-
- <import file="../build/build-common.xml"/>
- <import file="../ajde/build.xml"/>
- <import file="../bridge/build.xml"/>
- <import file="../taskdefs/build.xml"/>
-
- <path id="testing.test.src.path">
- <path refid="testing.src.path"/>
- <fileset dir="${basedir}/../lib">
- <include name="junit/*.jar"/>
- </fileset>
- <!-- for test run -->
- <pathelement path="../org.aspectj.ajdt.core/bin"/>
- <pathelement path="../weaver/bin"/>
- <pathelement path="../runtime/bin"/>
- <fileset dir="${basedir}/../org.eclipse.jdt.core">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${basedir}/../lib">
- <include name="bcel/*.jar"/>
- </fileset>
- </path>
-
- <path id="testing.src.path">
- <pathelement path="../ajde/bin"/>
- <pathelement path="../asm/bin"/>
- <pathelement path="../bridge/bin"/>
- <pathelement path="../taskdefs/bin"/>
- <pathelement path="../testing-util/bin"/>
- <pathelement path="../util/bin"/>
- <fileset dir="${basedir}/../lib">
- <include name="commons/*.jar"/>
- </fileset>
- <!-- for newsrc -->
- <pathelement path="../org.aspectj.ajdt.core/bintest"/>
- </path>
-
- <target name="compile" depends="init,
- ajde.compile,
- asm.compile,
- bridge.compile,
- taskdefs.compile,
- testing-util.compile,
- util.compile">
- <srccompile project="testing" path="testing.src.path"/>
- <!-- newsrc depends on ajdt.test:compile and we cannot use a depends for it due to the way
- Ant manage overrides thru <import -->
- <testcompile project="weaver" path="weaver.test.src.path"/>
- <testcompile project="org.aspectj.ajdt.core" path="org.aspectj.ajdt.core.test.src.path"/>
- <javac debug="on" destdir="../testing/bin" source="1.2" target="1.1">
- <src path="../testing/newsrc"/>
- <classpath refid="testing.src.path"/>
- <classpath path="../org.aspectj.ajdt.core/bintest"/>
- </javac>
- </target>
-
- <target name="test:compile" depends="compile">
- <testcompile project="testing" path="testing.test.src.path"/>
- </target>
-
- <target name="test" depends="test:compile,
- org.aspectj.ajdt.core.compile,
- weaver.compile,
- runtime.compile">
- <testrun project="testing" path="testing.test.src.path" suite="TestingModuleTests"/>
- </target>
-
- </project>
|