Added
Link Here
|
1 |
<!-- AspectJ v1.0.x Tests --> |
2 |
|
3 |
<ajc-test dir="reweavable" |
4 |
title="Ensure 1st aspect is rewoven when weaving 2nd aspect" |
5 |
keywords="reweavable"> |
6 |
<compile |
7 |
files="Main.java, Advisable.java, Aspect1.aj" |
8 |
outjar="main1.jar" |
9 |
options="-Xreweavable -showWeaveInfo" |
10 |
> |
11 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
12 |
</compile> |
13 |
<compile |
14 |
classpath="aspect1.jar" |
15 |
files="Aspect2.aj" |
16 |
inpath="main1.jar" |
17 |
options="-Xreweavable -showWeaveInfo -verbose" |
18 |
> |
19 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
20 |
<message kind="weave" text="Type 'Main' (Main.java:11) advised by before advice from 'Aspect2' (Aspect2.aj:3)"/> |
21 |
</compile> |
22 |
<run class="Main"/> |
23 |
</ajc-test> |
24 |
|
25 |
<ajc-test dir="reweavable" |
26 |
title="Ensure 1st aspect is rewoven when weaving 2nd aspect - aspectpath" |
27 |
keywords="reweavable"> |
28 |
<compile |
29 |
files="Main.java, Advisable.java" |
30 |
outjar="main1.jar" |
31 |
> |
32 |
</compile> |
33 |
<compile |
34 |
classpath="main1.jar" |
35 |
files="Aspect1.aj" |
36 |
outjar="aspect1.jar" |
37 |
> |
38 |
</compile> |
39 |
<compile |
40 |
inpath="main1.jar" |
41 |
aspectpath="aspect1.jar" |
42 |
outjar="main2.jar" |
43 |
options="-Xreweavable,-1.5,-showWeaveInfo" |
44 |
> |
45 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
46 |
</compile> |
47 |
<compile |
48 |
aspectpath="aspect1.jar" |
49 |
inpath="main2.jar" |
50 |
files="Aspect2.aj" |
51 |
options="-Xreweavable -showWeaveInfo" |
52 |
> |
53 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
54 |
<message kind="weave" text="Type 'Main' (Main.java:11) advised by before advice from 'Aspect2' (Aspect2.aj:3)"/> |
55 |
</compile> |
56 |
</ajc-test> |
57 |
|
58 |
|
59 |
<ajc-test dir="reweavable" |
60 |
title="Ensure 1st aspect is rewoven when weaving 2nd aspect - classpath" |
61 |
keywords="reweavable"> |
62 |
<compile |
63 |
files="Main.java, Advisable.java" |
64 |
outjar="main1.jar" |
65 |
> |
66 |
</compile> |
67 |
<compile |
68 |
classpath="main1.jar" |
69 |
files="Aspect1.aj" |
70 |
outjar="aspect1.jar" |
71 |
> |
72 |
</compile> |
73 |
<compile |
74 |
inpath="main1.jar" |
75 |
aspectpath="aspect1.jar" |
76 |
outjar="main2.jar" |
77 |
options="-Xreweavable,-1.5,-showWeaveInfo" |
78 |
> |
79 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
80 |
</compile> |
81 |
<compile |
82 |
classpath="aspect1.jar" |
83 |
inpath="main2.jar" |
84 |
files="Aspect2.aj" |
85 |
options="-Xreweavable -showWeaveInfo" |
86 |
> |
87 |
<message kind="weave" text="Type 'Main' (Main.java:7) advised by before advice from 'Aspect1' (Aspect1.aj:3)"/> |
88 |
<message kind="weave" text="Type 'Main' (Main.java:11) advised by before advice from 'Aspect2' (Aspect2.aj:3)"/> |
89 |
</compile> |
90 |
</ajc-test> |
91 |
|