Pointcuts not applied in another project [message #70307] |
Mon, 23 July 2007 07:46  |
Eclipse User |
|
|
|
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
|
|
|
Re: Pointcuts not applied in another project [message #70330 is a reply to message #70307] |
Tue, 24 July 2007 05:08  |
Eclipse User |
|
|
|
Hello,
Firstly your project where you want to use external aspects must be an
AspectJ project then if you want to use them you must add in the "Aspect
Path" Tab the directories where are compiled the aspects, that is to say
in the "bin" directory of your external project and not in the "src"
directory.
I hope that will help you.
Mickaël.
Srini Palthepu a écrit :
> 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
|
|
|
Re: Pointcuts not applied in another project [message #596256 is a reply to message #70307] |
Tue, 24 July 2007 05:08  |
Eclipse User |
|
|
|
Hello,
Firstly your project where you want to use external aspects must be an
AspectJ project then if you want to use them you must add in the "Aspect
Path" Tab the directories where are compiled the aspects, that is to say
in the "bin" directory of your external project and not in the "src"
directory.
I hope that will help you.
Mickaël.
Srini Palthepu a écrit :
> 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
|
|
|
Powered by
FUDForum. Page generated in 0.03070 seconds