It seems that AJDT tries to weave all classes in a project by default.
I attached files in a test project.
When I use "call" for pointcuts of interface Addable in MyAspect,
AJDT tries to weave the interface calls of the mock object.
Sometimes I don't want the advices in my unit test code, for
example, advices from the log aspect.
How can I prevent AJDT from weaving junit test case classes?
I did a test in my Eclipse 3.5 with AJDT 2.0.2.
If I add aop.xml into project properties->AspectJ Builder->aop.xml
Management, some wired things happens:
all aspectj advice markers are gone. You need to clean the project
first, otherwise you may see the markers are still there.
if you clean the project "Project->clean...", only the files under
src/main/java are compiled, src/test/java are not compiled.
remove aop.xml from aop.xml management, everything comes back.
What's wrong in my project? Is this AJDT bug?
Thanks.
Ben
<pom.xml>
<AjdtWeavingTest.java>
<MyAspect.java>
<Addable.java>
<AjdtWeaving.java>
<aop.xml>
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev