Replies: 6 comments 27 replies
-
At least Source-Bundles build by Tycho have a And once we have a reliable test if a bundle is a source-bundle it should be fairly easy to filter out source bundles in the Nevertheless in general it is recommended to use Import-Package instead of Require-Bundle (which is deprecated according to the OSGi-spec). For example the transition to OSGi-Bundles from Maven-Central would be simpler if Eclipse would use only Import-Package. The Plug-ins embedding those source could then be removed immediately. But before we evangelize this more PDE should improve its support for that (but that's another discussion). |
Beta Was this translation helpful? Give feedback.
-
Some support is better than no support, so I will create a issue and plan to look into it. Thanks Hannes. |
Beta Was this translation helpful? Give feedback.
-
The question is: Why they do that? This is not an error and maybe even desired, who knows? |
Beta Was this translation helpful? Give feedback.
-
IMHO this depends. If a plug-in requires tons of packages, e.g. like SWT it is so much easier to use plug-in dependencies compared to import packages as you would have to add a lot of package to use SWT which makes it time consuming and hard to read. |
Beta Was this translation helpful? Give feedback.
-
But lets not start a import package vs. required bundles here. This is about source bundles. :-) |
Beta Was this translation helpful? Give feedback.
-
In my plugin and RCP training sessions participants frequently add "sources" as dependencies in the MANIFEST and therefore their products do not start anymore as they are not part of their product / features.
Can we avoid this? Maybe we can just filter sources from the list of plugins which can be added to the MANIFEST.MF? cc @HannesWell who recently update the source generation in multiple places.
Beta Was this translation helpful? Give feedback.
All reactions