This page explains how to setup your CCIS accounts to use DAJ.
Setup
In order to be able to use the DAJ compiler and tools from your CCS
account you need to first complete the following steps:
Add /proj/demsys/demjava/bin to your PATH environment
variable
You can do this by adding the following line to your
.software file. PATH=/proj/demsys/demjava/bin
If you do not have a .software file then you have
to append the above directory to your PATH variable in your shell's
initialization file.
The following commands are now available on your shell
dajc - the DAJ compiler
daj - specialized command to run bytecode compiled with the dajc
Testing your Setup
To test your setup for DAJ type the following at your shell prompt:
> dajc
The command should reply with the following:
Usage:
java edu.neu.ccs.demeter.tools.daj.DAJ
[-ajcopt ]
Source files
.cd Class dictionary file
.trv Traversal file
.java AspectJ file
Options
-o Where to place generated files (default is "gen")
-d Where to place class files (default is current directory)
-ajc Execute an aspect compiler via the shell instead of
invoking the AspectJ compiler via the classpath
-trace Trace all traversals
-debug Output debug info during traversal generation
To compile a class dictionary, write a file my.cd containing
A = String Ident.
and run
dajc *.cd
In the gen directory you will find the code produced for class A.