| [aspectj-users] Re: [NEWSDELIVER] Re: Load Time Weaving AspectJ 5 |
To:
undisclosed-recipients:;
cc:
Subject:
[NEWSDELIVER]
Re: Load Time Weaving AspectJ 5
I have run my example when separating the apsects and java classes into
two projects, and I could exclude weaving classes of a specific package.
I mean that by using the following aop.xml:
<?xml version="1.0" encoding="UTF-8"?>
<aspectj>
<aspects>
<aspect
name="monPAck.MonAspect2"/>
<aspect
name="monPAck.MonAspect1"/>
</aspects>
<weaver options="-verbose">
<exclude
within="test..*"/>
</weaver>
</aspectj>
No apsect has been weaven to classes of the package "monPack".
But I want to specify the method or the class to exclude!
Thus, when I tried with:
<exclude within="test.Hello.sayHello(..)"/> or <exclude
within="test.Hello.*"/>
that dosent work!
The same thing when I use <exclude within="monPAck.MonAspect1"/>,
I
expected to not weave the aspect MonAspect1 to any class. It still be
weaved!
Is it normal? Has anyone tried to do the same? Thank you fir your help.
Mouna