Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Pointcuts not applied in another project
Pointcuts not applied in another project [message #70307] Mon, 23 July 2007 11:46 Go to next message
Srini Palthepu is currently offline Srini PalthepuFriend
Messages: 4
Registered: July 2009
Junior Member
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 09:08 Go to previous message
Mickael GAUVIN is currently offline Mickael GAUVINFriend
Messages: 38
Registered: July 2009
Member
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 09:08 Go to previous message
Mickael GAUVIN is currently offline Mickael GAUVINFriend
Messages: 38
Registered: July 2009
Member
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
Previous Topic:Pointcuts not applied in another project
Next Topic:Programmatically weaving jars
Goto Forum:
  


Current Time: Sat Nov 22 13:21:25 GMT 2014

Powered by FUDForum. Page generated in 0.01799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software