| [news.eclipse.technology.ajdt] Re: Restrict weaver to only certain packages |
Andrew Eisenberg wrote:Is there a way to configure aspectj to only weave a certain package? We have a large project that cannot be separated out at this time. The weaving takes a long time. All the classes that need to be weaved are in a single package. However, watching the progress, it appears to go through every class to weave it. How can I limit the weaving to speed up the build?
If you use the "within" pointcut, you will tell the weaver not to look in any other classes/packages than what is specified in your pointcut. This should help in your situation.
I then have advice as follows:
void around(Object o, Object v) : fieldMutator(o, v) {...}