This script builds the AspectJ examples.

Relevant targets: spacewar build and run spacewar with debugging (default) all build and run each example {example} build and run any {example} (use -projecthelp to list {example} names) tracing-bc use AspectJ 1.1 bytecode weaving to build tracing example

Setup: - Run from the doc/examples directory in your AspectJ distribution. The tasks in ../../lib/aspectjtools.jar are used automatically.

Variants: - To avoid running (i.e., compile only), define variable "norun" - To define a variable, use the Ant -D option - e.g., on Windows:

ant -f build.xml -DJAVA_HOME=c:\jdk1.3.1 -Dnorun=skip

clean and create classes/jar dir, .ajesym files

init variables

compile {list} and run {class} of example

run {class} unless {norun} is set

build and run all examples

build and run non-GUI examples

build bean example

build inter-type declaration example

build inter-type declaration (clone) example

build inter-type declaration (Comparable) example

build inter-type declaration (hashcode) example

build observer example

build spacewar debug example

build spacewar demo (no debug) example

build telecom basic example

build telecom billing example

build telecome timing example

build thisJoinPoint example

build tracing (base) example

build tracing (version 1) example

build tracing (version 2) example

build tracing (version 3) example

tracing example compiled via javac task

tracing example compiled using ajc via compiler adapter

tracing example with bytecode weaving (binary aspects)

tracing example with load-time aspect weaving