[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] How to exclude a package including all subpackages from load time weaving?
|
Change
<exclude within="org.netbeans.jemmy.*" />
to
<exclude within="org.netbeans.jemmy..*" />
The ".." handles arbitrarily-nested packages.
dean
On May 23, 2007, at 3:10 AM, Daniel Grob wrote:
Hello,
I want to exclude a package including all subpackages from load
time weaving. For this I have added an exclude element to my
aop.xml file:
<aspectj>
<aspects>
<aspect name="com.canoo.playground.aspect.HelloAspect" />
</aspects>
<weaver options="-debug">
<exclude within="org.netbeans.jemmy.*" />
</weaver>
</aspectj>
In the debug output of the load time weaver I can see the following
lines:
[java] [AppClassLoader@92e78c] debug not weaving
'org.netbeans.jemmy.Timeout'
[java] [AppClassLoader@92e78c] debug weaving
'org.netbeans.jemmy.QueueTool$RunnableRunnable'
[java] [AppClassLoader@92e78c] debug weaving
'org.netbeans.jemmy.drivers.input.RobotDriver'
That means only classes that are directly inside the
org.netbeans.jemmy package are exclude but no inner classes and no
classes that are inside subpackages, e.g. org.netbeans.jemmy.drivers.
Question: how can I easily exclude all classes (regular and inner
ones) that are below a certain package?
Regards Dany
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
Dean Wampler, Ph.D.
dean at objectmentor.com
http://www.objectmentor.com
http://www.aspectprogramming.com
http://www.contract4j.org
I want my tombstone to say:
Unknown Application Error in Dean Wampler.exe.
Application Terminated.
[Okay] [Cancel]