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.
Asked
Active
Viewed 3,826 times
6
-
Why not stick with the standard location? – bwawok Jul 23 '10 at 03:04
1 Answers
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