6

From what I understand, for load time weaving to work using an aop.xml file, it must be placed in META-INF. Is there a way to get around this and use an aop.xml (or any xml file) in any directory? Thanks.

Adriaan
  • 187
  • 1
  • 7
meteoritepanama
  • 6,092
  • 14
  • 42
  • 55

1 Answers1

8

You can use the system property org.aspectj.weaver.loadtime.configuration to point to another AspectJ config file. For example:

-Dorg.aspectj.weaver.loadtime.configuration=file:META-INF/myaop.xml
Vignesh Raja
  • 7,927
  • 1
  • 33
  • 42
Adriaan
  • 187
  • 1
  • 7