blob: 687d41b10a30dc9570204565de525d4dabcbf4f1 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<!-- ajc-ant script, not to be used from Ant commant line - see AntSpec -->
<project name="tracing">
<!-- using this we can debug the forked VM -->
<property
name="jdwp"
value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
<target name="Tracing">
<java fork="yes" classname="TracingTest" failonerror="yes">
<classpath refid="aj.path"/>
<!-- use META-INF/aop.xml style -->
<!-- <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>-->
<!-- <jvmarg line="${jdwp}"/>-->
</java>
</target>
<target name="Default tracing">
<java fork="yes" classname="DefaultTracingTest" failonerror="yes">
<classpath refid="aj.path"/>
<!-- use META-INF/aop.xml style -->
<!-- <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>-->
<!-- <jvmarg line="${jdwp}"/>-->
</java>
</target>
<target name="Trace messages">
<copy file="${aj.root}/tests/tracing/aop-tracemessages.xml"
tofile="${aj.sandbox}/META-INF/aop.xml"/>
<java fork="yes" classname="HelloWorld" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
<jvmarg value="-Dorg.aspectj.tracing.messages=true"/>
<!-- use META-INF/aop.xml style -->
<jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
<!-- <jvmarg value="${aj.addOpensKey}"/>-->
<!-- <jvmarg value="${aj.addOpensValue}"/>-->
<!-- <jvmarg line="${jdwp}"/>-->
</java>
</target>
<target name="Trace everything">
<java fork="yes" classname="HelloWorld" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Dorg.aspectj.tracing.enabled=true"/>
<jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
<jvmarg value="-Dorg.aspectj.tracing.messages=true"/>
<!-- <jvmarg value="-verbose:class"/>-->
<!-- use META-INF/aop.xml style -->
<jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
<!-- <jvmarg value="${aj.addOpensKey}"/>-->
<!-- <jvmarg value="${aj.addOpensValue}"/>-->
<!-- <jvmarg line="${jdwp}"/>-->
</java>
</target>
<target name="JDK 1.4 tracing">
<copy file="${aj.root}/tests/tracing//logging.properties"
tofile="${aj.sandbox}/META-INF/logging.properties"/>
<java fork="yes" classname="HelloWorld" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Dorg.aspectj.tracing.debug=true"/>
<jvmarg value="-Djava.util.logging.config.file=logging.properties"/>
<!-- use META-INF/aop.xml style -->
<jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
<!-- <jvmarg value="${aj.addOpensKey}"/>-->
<!-- <jvmarg value="${aj.addOpensValue}"/>-->
<!-- <jvmarg line="${jdwp}"/>-->
</java>
</target>
<target name="Tracing file System Property">
<java fork="yes" classname="HelloWorld" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Dorg.aspectj.tracing.enabled=true"/>
<jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
<jvmarg value="-Dorg.aspectj.tracing.messages=true"/>
<jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
<!-- <jvmarg value="${aj.addOpensKey}"/>-->
<!-- <jvmarg value="${aj.addOpensValue}"/>-->
<!-- <jvmarg value="-verbose:class"/>-->
<!-- use META-INF/aop.xml style -->
<!-- <jvmarg line="${jdwp}"/>-->
<sysproperty key="org.aspectj.tracing.file" path="${aj.sandbox}/tracing.txt"/>
</java>
</target>
</project>
|