AspectJ Setup and Usage at CCS
/proj/demsys/demeterj/bin/
to your PATH environment
variable .software
file. .software
file then you have
to append the above directory to your PATH variable in your shell's
initialization file.
/proj/demsys/demeterj/lib/aspectjrt.jar
to your
CLASSPATH environment variable. .software
file. .software
file then you have
to append the above directory to your CLASSPATH variable in your shell's
initialization file.
ajc -version
You should get a response (currently) of the form:
ajc version 1.0.1 (built Dec 18, 2001 11:11 AM PST) running on java 1.3.0
To compile a bunch of Java files use
ajc *.java
To find out about how AspectJ compiles the code, use
ajc -preprocess *.java
and inspect the ajworkingdir
directory.
For information on compiler options as well as AspectJ in general visit The AspectJ Web Page