Loading time in AspectJ using aop.xml

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

+6
java aop aspectj load-time-weaving
source share
1 answer

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

 -D org.aspectj.weaver.loadtime.configuration=META-INF/myaop.xml 
+8
source share

All Articles