aboutsummaryrefslogtreecommitdiffstats
path: root/docs/dist/doc/examples/ltw/README
blob: bbeb56290e313a2ff5e0621a0b8f79f5ea4bba79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This directory contains a script "aj" to demonstrate load-time weaving. Java
classes on the CLASSPATH are loaded and woven with aspects on the ASPECTPATH.
This feature is only supported on JDK 1.4 and later.

--To compile the tracing example--

 ant -f ../build.xml tracing-lt

--To run the example--

 set CLASSPATH to include "../jars/tracingApp.jar"

 aj tracing.ExampleMain

--To run the example with tracing--

 set ASPECTPATH=../jars/tracingLib.jar

 aj tracing.ExampleMain