Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumscross-project aspects?
https://www.eclipse.org/forums/index.php/mv/msg/186731/592369/#msg_592369
Originally posted by: yoduderoo.netscape.net
Hi,
Should it be possible to define an Aspect in one project which weaves
into code from another?
For example, I create an AspectJ project A. I convert an existing Java
project, B, by right-clicking the Java project and performing relevant
action. I create an aspect, TestAspect, in project A which defines a
pointcut on a Java source in B. It compiles, but there are no markers.
If I move the source from B into aspect project A, the markers appear.
Can I have a separate project with my aspects which weave into other
projects?