Adding an aspectpath

The AspectJ aspectpath setting enables weaving aspects from the aspectpath into the project and writing the results to the normal output location.

To set the aspectpath:

  1. Select the AspectJ project in the Package Explorer
  2. Right click and select AspectJ Tools > Configure AspectJ Build Path...
  3. Select the Aspect Path tab
  4. Use the buttons on the right hand side to add class folders and/or JAR files to the aspectpath.
  5. Click OK to finish. If automatic building is switched on the project will rebuild.

Shortcuts are available by right clicking on a local JAR file, to add or remove that file from the project's aspectpath.

Related concepts
AspectJ projects
Aspects
AspectJ builder

Related tasks
Adding an outjar
Adding an inpath
Changing compiler settings
Using a multi-project setup