Problems with Run Configuration with Selected Features [message #559084] |
Wed, 15 September 2010 10:41  |
Eclipse User |
|
|
|
The 3.6 feature of creating a run configuration from a list of features rather than a list of plug-ins caused a sigh of relief in our team.
For each of the developers, having to maintain the list of plug-ins for each run configuration was a pain. Missing a plug-in from your configuration would often lead the reporting a "bug" which went away once a required plug-in were added to the configuration.
Using our the feature definition in the run configuration does not work quite as expected, however.
For our most important kind of run configuration, we have a single feature. Yet it seems that the application is launched with a lot (maybe all) of the plug-ins and fragments in the workspace that are not part of the feature. This causes a lot of test stuff to be available in the launched application, which is not really what is intended.
Also launching with a completely empty feature list seems to work as well, which is weird!
We tried deselecting the option "Use features from workspace if available", but that resulted the extensions in the selected feature not being available to the launched application.
Can someone point us in the right direction in using this? Or is this particular functionality just not ready to use yet?
|
|
|
|
|
|
Re: Problems with Run Configuration with Selected Features [message #633858 is a reply to message #559488] |
Tue, 19 October 2010 11:57  |
Eclipse User |
|
|
|
Again, thank you for the reply.
I'm still unsure, though, if the resolution mechanics you describe are the most appropriate.
Concretely, our problem is that we use fragments to contain test code for each of our bundles. And we only want those fragments included when we run our unit tests.
There are also a number of other use cases for fragments, e.g. the example from the OSGi spec of providing translation files for different locales, that seems to require control over whether or not a fragment is deployed. Consider an English and a French localization fragment, where you only want one of those.
It makes the way features are interpreted in run configurations a lot less useful, that all of the fragments in the workspace are considered part of the application rather than only those specified in the selected features.
My intuitive understanding of what it would mean to "Launch with: features selected below" is that it should be equivalent to "Launch with: plugin-ins selected below" where the plug-ins selected are exactly those specified by the features.
This interpretation gives complete control over which plug-ins and fragments are used in a run configuration. It would also make the use of features in run configurations coherent with the use of plug-ins/bundles, in that you only get what is specifically selected in the run configuration.
|
|
|
Powered by
FUDForum. Page generated in 0.04354 seconds