Home » Language IDEs » AspectJ » PDE/Build with AspectJ and Equinox Weaving
PDE/Build with AspectJ and Equinox Weaving [message #1024238] |
Tue, 26 March 2013 02:08 |
Javier Pedemonte 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:
plugin@org.aspectj.runtime,1.7.2=p2IU,id=org.aspectj.runtime,version=1.7.2.20130214224500,repository=http://download.eclipse.org/tools/ajdt/42/update
plugin@org.aspectj.weaver,1.7.2=p2IU,id=org.aspectj.weaver,version=1.7.2.20130214224500,repository=http://download.eclipse.org/tools/ajdt/42/update
plugin@org.eclipse.equinox.weaving.aspectj,1.0.200=p2IU,id=org.eclipse.equinox.weaving.aspectj,version=1.0.200.I20130127-2000,repository=http://download.eclipse.org/tools/ajdt/42/update
plugin@org.eclipse.equinox.weaving.caching,1.0.200=p2IU,id=org.eclipse.equinox.weaving.caching,version=1.0.200.I20130127-2000,repository=http://download.eclipse.org/tools/ajdt/42/update
plugin@org.eclipse.equinox.weaving.caching.j9,1.0.200=p2IU,id=org.eclipse.equinox.weaving.caching.j9,version=1.0.200.I20130127-2000,repository=http://download.eclipse.org/tools/ajdt/42/update
fragment@org.eclipse.equinox.weaving.hook,1.0.200=p2IU,id=org.eclipse.equinox.weaving.hook,version=1.0.200.I20130127-2000,repository=http://download.eclipse.org/tools/ajdt/42/update
Now the build fails with:
generateScript:
[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.
[2] wiki.eclipse.org/Equinox_Weaving_QuickStart
[3] contraptionsforprogramming.blogspot.com/2010/03/ajdt-pde-builds-redux.html
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 19:59:36 GMT 2024
Powered by FUDForum. Page generated in 0.03051 seconds
|