Hi Andrew,

Thanks for replying.

When I mentioned LTW, I just wanted to prove that all advices are actually
applied.

For my experience, if you provide META-INF/aop.xml in your project, and the
aspects and woven classes in one project, AJDT can show the markers
correctly even you use LTW.

As you said, if I put the aspect project in Aspect PATH of the project of
woven classes, AJDT did show markers on them, and no markers on the aspects.
However, using Aspect Path may conflict with maven dependencies because AJDT
puts them in class path too if the project of woven classes is a dependency
of the aspect project, then you might get cyclic reference errors.

The markers make me sure my advices are correctly written. Without them, it
is hard to find out where is wrong when the advices don't work as expected
sometimes.

Thanks again.

On Tue, Oct 26, 2010 at 8:46 AM, Andrew Eisenberg <[email protected]>wrote:

> You will not see any markers in AJDT when you are using LTW.  Since
> weaving is done at load-time only, the IDE is not aware of it.
>
> However, even if you change to compile time weaving, then not all
> markers will show up.  A project that has an aspect coming in from the
> aspect path will show markers where that aspect applies.  But, the
> aspect itself will not show any markers.
>
> Are you saying that you still see no markers when you change to CTW
> and your aspect is in a different project?  If that is the case, then
> it may be that your aspect path is not properly set up in the
> consuming project.
>
> On Tue, Oct 26, 2010 at 1:10 AM, Benyi Wang <[email protected]> wrote:
> > Hi,
> >
> > I still cannot find a way to show advice markers if the aspects and woven
> > classes in different projects.
> >
> > for example,
> >
> > aspectj-mp-aspect defines the aspect using AspectJ annotation.
> > aspectj-mp defines the woven classes.
> >
> > If I put them in one project, it works fine.
> >
> > I'm using load-time weaving, maven2, m2eclipse, and AJDT.
> >
> > The load-time weaving works fine, so aop.xml should work correctly. I
> just
> > want to show advice markers, but currently I got "advice defined in
> > LogAspect has not been applied"
> >
> >
> > _______________________________________________
> > aspectj-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to