Community
Participate
Working Groups
There is no option to export features with AspectJ support. When exporting featues in the standard way, the aspectj compiler is not invoked and so plugins are not compiled properly during the export. It is a matter of invoking AJModelBuildScriptGenerator instead of ModelBuildScriptGenerator. So far, no one has asked for this feature. So this is low priority unless I get some interest in this.
I'm (heavily) affected by this bug. Nowadays we have to generate all of our aspect aware plugins twice, once to properly create the feature, and then once again to get the code to work. The second time we export the plugins individually, of course. This bug is preventing wide adoption of aspects in our platform, as we have over 300 plugins grouped in half a dozen features. Right now we only apply aspects in one of our smallest features, with just a dozen plugins.
Created attachment 147098 [details] AJFeature enabler I decided to give it a try, and it was fairly easy to add support for exporting features. I'm attaching a patch that provides it. It's missing the necessary plugin.xml and plugin.properties modifications, since I don't really know against which cvs branch should I make that patch. Locally I'm patching AJDT 2.0 for eclipse 3.4
Thanks for the patch. I will have to test this out a bit, but eyeballing the code and it looks fairly reasonable. I will be able to make the plugin.xml and other changes. Initially, I will place this patch in the 3.5 branch and backport to 3.4 at a later date (for the 2.0.1 release).
I applied your patch. It seems that things are not as simple as I would have hoped. The export code for AJDT has not really been updated since eclipse 3.4. In order to work with many of the new 3.5 options (eg- binary cycles and install directly into platform), I had to make quite a few changes. Now, exporting a feature with AspectJ support is available and should work for you. However, I have not yet been able to export source bundles or generate p2 metadata. Please try this out and let me know if this works for you.
Move to the 2.0.2 release.
Mistake...this bug has been implemented and the feature is fully available for 2.0.1 in the .5 stream only.