[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] weaving selected files in a library
|
Take a look at
http://eclipse.org/aspectj/doc/released/README-169.html (the "AOP Scoping" section) along with -xmlConfigured option to 'ajc'.
BTW, this and such discussions belong to the aspectj-user mailing list. Please ask subsequent question there.
-Ramnivas
On Tue, Jun 29, 2010 at 8:43 PM, Candy Chiu
<candy.chiu.ad@gmail.com> wrote:
In this case, I can only supply *.jar to -injar and -aspectpath because I am weaving a third party library. I'd like to weave certain aspects of the jar into a target jar. Executing
ajc -injar target.jar -aspectpath library.jar
would weave everything in library.jar into target.jar. Suppose library.jar contains aspects A.aj and B.aj. How can I weave only A.aj into target.jar?
It can be achieved through load time weaving via specifying in aop.xml
<aspects>
<aspect name="A"/>
<exclude within="B"/>
</aspects>
I am trying to achieve the same effect in compile time weaving. Thanks.
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev