Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » AJDT or Equinox Aspects for Eclipse Applications?
AJDT or Equinox Aspects for Eclipse Applications? [message #74065] Thu, 04 June 2009 17:29 Go to next message
Jörg Kiegeland is currently offline Jörg Kiegeland
Messages: 32
Registered: July 2009
Member
I am a newbie to AJDT and as I read the "Working with plug-in projects"
section in the AJDT-Introduction , I thought aspectj would be supported
also in Eclipse Applications. However I not got it working, and may it
be that the "Inpath" / "Aspect Path" settings are relevant only for Java
Applications? Weaving in my Eclipse Application (actually a JUnit
Plugin-Test) works only if the target bundle and the aspect bundle are
the same, weaving in a Java Application works generally for me.

Then I saw the Equinox Aspects project, however when starting my JUnit
Plugin-Test , I found the log

[org.eclipse.equinox.weaving.aspectj] info Starting AspectJ weaving
service ...

but no weaving between my target bundle and my aspect bundle happend
(from logging and from execution behavior). So I get it not working with
Equinox Aspects, too.

Any idea?
Re: AJDT or Equinox Aspects for Eclipse Applications? [message #74083 is a reply to message #74065] Thu, 04 June 2009 18:24 Go to previous message
Eclipse User
Originally posted by: andrew.eisenberg.springsource.com

Yes, in order to weave into Eclipse plugins (ie- OSGi bundles), you must use
Equinox Aspects. In order to make your own plugin exposed to the weaver,
you must include an aop.xml file.

See the aspectJ programming guide for more info on aop.xml:
http://www.eclipse.org/aspectj/doc/next/devguide/ltw-configu ration.html

See the Equinox Aspects page for more info on EA:
http://www.eclipse.org/equinox/incubator/aspects/index.php

Please post to the mailing list if you continue to have questions.


On 04/06/09 10:29 AM, in article h09094$lk8$1@build.eclipse.org, "Jörg
Kiegeland" <kiegeland@ikv.de> wrote:

> I am a newbie to AJDT and as I read the "Working with plug-in projects"
> section in the AJDT-Introduction , I thought aspectj would be supported
> also in Eclipse Applications. However I not got it working, and may it
> be that the "Inpath" / "Aspect Path" settings are relevant only for Java
> Applications? Weaving in my Eclipse Application (actually a JUnit
> Plugin-Test) works only if the target bundle and the aspect bundle are
> the same, weaving in a Java Application works generally for me.
>
> Then I saw the Equinox Aspects project, however when starting my JUnit
> Plugin-Test , I found the log
>
> [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ weaving
> service ...
>
> but no weaving between my target bundle and my aspect bundle happend
> (from logging and from execution behavior). So I get it not working with
> Equinox Aspects, too.
>
> Any idea?
Re: AJDT or Equinox Aspects for Eclipse Applications? [message #600029 is a reply to message #74065] Thu, 04 June 2009 18:24 Go to previous message
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 77
Registered: July 2009
Member
Yes, in order to weave into Eclipse plugins (ie- OSGi bundles), you must use
Equinox Aspects. In order to make your own plugin exposed to the weaver,
you must include an aop.xml file.

See the aspectJ programming guide for more info on aop.xml:
http://www.eclipse.org/aspectj/doc/next/devguide/ltw-configu ration.html

See the Equinox Aspects page for more info on EA:
http://www.eclipse.org/equinox/incubator/aspects/index.php

Please post to the mailing list if you continue to have questions.


On 04/06/09 10:29 AM, in article h09094$lk8$1@build.eclipse.org, "Jörg
Kiegeland" <kiegeland@ikv.de> wrote:

> I am a newbie to AJDT and as I read the "Working with plug-in projects"
> section in the AJDT-Introduction , I thought aspectj would be supported
> also in Eclipse Applications. However I not got it working, and may it
> be that the "Inpath" / "Aspect Path" settings are relevant only for Java
> Applications? Weaving in my Eclipse Application (actually a JUnit
> Plugin-Test) works only if the target bundle and the aspect bundle are
> the same, weaving in a Java Application works generally for me.
>
> Then I saw the Equinox Aspects project, however when starting my JUnit
> Plugin-Test , I found the log
>
> [org.eclipse.equinox.weaving.aspectj] info Starting AspectJ weaving
> service ...
>
> but no weaving between my target bundle and my aspect bundle happend
> (from logging and from execution behavior). So I get it not working with
> Equinox Aspects, too.
>
> Any idea?
Previous Topic:AJDT or Equinox Aspects for Eclipse Applications?
Next Topic:ADJT Development
Goto Forum:
  


Current Time: Sat Oct 25 06:22:51 GMT 2014

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

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