Building and Running the Aspect
Listing 11 shows the steps to build and run the production aspect. The main difference this time is that this example is built from within the AspectJava\doc\examples folder. You need to create a folder called objectmods under examples. Copy the five files from the code location area and then run the commands in Listing 11.
Listing 11 Building and Running the Second Example
ajc -argfile objectmods/OrderManagement.lst set classpath=.;%classpath%;objectmods\Charging.class;objectmods\Order.class;objectmods\OrderManagement.class;objectmods\StockItem.class; java objectmods.OrderManagement
The commands in Listing 11 should produce the output displayed in Listing 7.