This example can be run with either JDK 5 or JDK 1.4
The two main targets for running with JDK 5 are
$ ant run.aopc.50 $ ant run.loadtime.50
These are compiled against the JBoss AOP libraries for JDK 5, and so will work with JDK 5 only
The ant.run.aopc.50 target uses compile-time weaving, and performs the following steps
The ant.loadtime.aopc.50 target uses load-time weaving (the classes are transformed when first loaded) and performs the following steps:
The following two targets illustrate the steps to run annotated code on JDK 1.4.
$ ant run.aopc.14 $ ant run.loadtime.14
These are compiled against the JBoss AOP libraries for JDK 1.4, and so will work regardless of if your chosen JDK is JDK 1.4 or JDK 5.
The ant.run.aopc.14 target uses compile-time weaving, and performs the following steps
The ant.loadtime.14 target uses loadtime-time weaving (the classes are transformed when first loaded) and performs the following steps: