blob: 4d35b77567a30eed371da37abf4be5fe7599e969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<!-- to test incremental task, run setup then test -->
<project default="setup" basedir=".">
<target name="init">
<property name="test.dir"
location="${basedir}"/>
<property name="aspectjrt.jar"
location="${test.dir}/../../../lib/test/aspectjrt.jar"/>
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
<classpath>
<pathelement path="${aspectjtools.jar}"/>
</classpath>
</taskdef>
<available property="aspectjrt.jar.available"
file="${aspectjrt.jar}"/>
<fail unless="aspectjrt.jar.available"
message="expecting aspectjrt.jar: ${aspectjrt.jar}"/>
<available property="aspectjtools.jar.available"
file="${aspectjtools.jar}"/>
<fail unless="aspectjtools.jar.available"
message="expecting aspectjtools.jar: ${aspectjtools.jar}"/>
</target>
<target name="call-makeInjar">
<!-- when XCopyInjars support rolled out, use that -->
<iajc outjar="${test.dir}/${name}Classes.jar"
classpath="${aspectjrt.jar}"
sourceroots="${test.dir}/${name}"/>
<zip zipfile="${test.dir}/${name}Injar.jar">
<zipfileset src="${test.dir}/${name}Classes.jar"/>
<fileset dir="${test.dir}/${name}"
includes="**/*"
excludes="**/*.java"/>
</zip>
<delete file="${test.dir}/${name}Classes.jar"/>
</target>
<target name="setup" depends="init"
description="create input jars">
<antcall target="call-makeInjar">
<param name="name" value="one"/>
</antcall>
<antcall target="call-makeInjar">
<param name="name" value="two"/>
</antcall>
</target>
</project>
|