| Summary: | Feature based launch starts all fragments of a bundle although some of them are not included in the features | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Andreas Buehler <abuehler> |
| Component: | UI | Assignee: | PDE-UI-Inbox <pde-ui-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Andreas Buehler
You are using fragments in an unusual way. Typically fragments are used to extend/overwrite functionality for specific platforms, compatibility etc. Since you have two different applications, it sounds like you should have three bundles: core, server, client. Feature launching won't work in this case because it launches all required plug-ins and fragments. All fragments are included if their base plug-in is included. This allows the launch to work on multiple platforms (OSGi will only start the fragments if their platform filter matches). I don't think there is a realistic way for feature launch to handle this case. The launching of all required plug-ins and fragments is a key part of the feature. Thank you very much for the explanation. I will try to convert the fragments to plugins again - I believe we had some class loading issues during the startup of those which was the reason why I used fragments. However, those might have been solved meanwhile by a different startup logic from us. I agree that the main usage of fragments is the platform and language specific code. However, maybe someone will come across this issue again together with junit fragments which are used to be able to test package protected methods. Thankfully, we dont test those and therefore use only plugins for tests. I'm going to close this as WONTFIX. To support this scenario would require a major reworking of the feature launch so that fragments could somehow be separated. Adding all requirements automatically is one of the selling points of the feature launch. There is also the workaround of using the plug-in base launch for more granular control over what is being launched. |