meteoritepanama
meteoritepanama

Reputation: 6252

Load time weaving in AspectJ using aop.xml

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.

Upvotes: 6

Views: 4057

Answers (1)

Adriaan
Adriaan

Reputation: 187

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

Upvotes: 8

Related Questions