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] [EMAIL PROTECTED] debug not weaving 'org.netbeans.jemmy.Timeout' [java] [EMAIL PROTECTED] debug weaving 'org.netbeans.jemmy.QueueTool$RunnableRunnable' [java] [EMAIL PROTECTED] 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
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to