Skip to main content



      Home
Home » Language IDEs » AspectJ » AJDT or Equinox Aspects for Eclipse Applications?
AJDT or Equinox Aspects for Eclipse Applications? [message #74065] Thu, 04 June 2009 13:29 Go to next message
Eclipse UserFriend
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 14:24 Go to previous message
Eclipse UserFriend
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 14:24 Go to previous message
Eclipse UserFriend
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: Mon May 12 18:54:41 EDT 2025

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

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

Back to the top