Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Help in Eclipse + AspectJ using AJDT

Once you have added the output folder of the java project as inpath to
the AspectJ project.  Do you see any of the java project .class files
appearing in the AspectJ output folder?

You can put the aspect output folder on the aspect path for the
project you want to affect with the aspect, but that means you have to
convert the plain java project into an AspectJ project. Hence I did
not suggest that.

How are you checking if advice is being woven? Are you looking for
markers in the editor or are you running the resultant code?

If you successfully wove the aspect into 'similar' classes that were
in the aspectj project then it sounds like your aspect is fine.


On 24/07/07, Srinivas Palthepu <spalthepu@xxxxxxxxxxxxxx> wrote:

I tried that too. I tried putting other project class dir in the inpath
of the
Aspect project. Also, I tried putting spect dir in aspectpath of the
other project.
Nothing seem to be working. Aspect's advices are not applied to the
classes.
I don't see any error or warning in the pointcut definition or advice
definition though.

Srini

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Andy Clement
Sent: Tuesday, July 24, 2007 7:09 AM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] Help in Eclipse + AspectJ using AJDT

Simplest way it to put the bin folder of your java project on the inpath
of your AspectJ project, the woven output will then appears in the bin
folder of your aspectj project.


On 23/07/07, Srinivas Palthepu <spalthepu@xxxxxxxxxxxxxx> wrote:
> Hi
>
> I am just started with AJDT in Eclipse. I created a sample toy aspect
> and was able to apply to test Java class in the same directory. But
> when I tried to apply to some other class in a different project or
> directory It is not able to do that.  My question is how do aspects
> and classes see each other.
> Does the aspects have to be in the same project as the classes they
> are applied to? I tried to add to the Aspect In path the directory
> from other project. But it did not help.
>
> Also, I am getting a runtime exception once in a while with Eclipse
> 3.2 and AJDT 1.4.2.0705221209
>
> Any help is appreciated.
>
> thanks
> Srini
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top