Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » PDE/Build with AspectJ and Equinox Weaving
PDE/Build with AspectJ and Equinox Weaving [message #1024238] Tue, 26 March 2013 02:08 Go to next message
Javier Pedemonte is currently offline Javier PedemonteFriend
Messages: 5
Registered: July 2009
Junior Member
I need help adding AspectJ and Equinox Weaving into an existing headless PDE Build (hopefully this is the correct forum).

The headless PDE Build [1] is kicked off from a .product file, which references a bunch of features, which bring in the plugins. Features and plugins are referenced by a set of map files (for use by the build). The app that is getting built depends on another app (which is built from source) which itself is built on Equinox.

I created an aspect which advices the app on which I depend. My understanding is that since I'm advising another plugin, I cannot do compile-time weaving. Therefore, I generally followed the Equinox Weaving Quick-start guide [2].

I created a plugin to contain the aspect; the plugin has a dependency on org.aspectj.runtime. I also created a feature for this plugin; the feature wraps my aspect plugin, as well as org.aspectj.weaver & org.eclipse.equinox.weaving.{aspectj,caching,hook} (not sure if this is necessary in the feature).

Following the quick-start guide, everything worked when running from within Eclipse and my aspect was correctly invoked. I just can't get the build working.

I found a blog post [3] which discusses PDE Build and Aspectj. I made the appropriate additions to my aspect plugin.

When I first started the build, it failed because it was missing the org.aspectj.runtime plugin (referenced by my aspect plugin). I figured I need to add the AspectJ and Weaving plugins into the map files, so I added the following:


Now the build fails with:

[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[eclipse.buildScript] Bundle org.aspectj.weaver:
[eclipse.buildScript] 	Missing required plug-in org.aspectj.runtime_1.5.3.
[eclipse.buildScript] Bundle my.aspects:
[eclipse.buildScript] 	Missing required plug-in org.aspectj.runtime_0.0.0.

I'm not sure why it's looking for version 1.5.3; regardless, no version of org.aspectj.runtime is downloaded (although I do see org.aspectj.weaver).

Do anyone know how to set this up correctly?

[1] Which I inherited; I know enough to get by, but am not a PDE expert.
Re: PDE/Build with AspectJ and Equinox Weaving [message #1030864 is a reply to message #1024238] Sun, 31 March 2013 22:18 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 382
Registered: July 2009
Senior Member

Apologies for not responding sooner. I have been away.

So, the 1.5.3 message is a red herring. PDE is looking for 1.5.3 or greater and is not finding it. I am not exactly sure why the aj runtime plugin is not being found through your map file, but that is the problem. The version number looks correct.

Can you attach the entire output of your pde build file? Maybe there is a message somewhere else that can teach us more.

Previous Topic:No Persistence Provider for EntityManager named default
Next Topic:Plugin class calls logging
Goto Forum:

Current Time: Mon Feb 24 00:39:19 GMT 2020

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

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

Back to the top