[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Re: How to launch an application with only the plugins specified in a launch configuration?
|
Hi Chris,
I recall that there are many ways to specify
which bundles an application should use. Is there
any document where this is specified. My problem
is that I would have to become an p2 expert to
figure out what the options are and to make
a good guess:
http://michaelscharf.blogspot.com/2009/05/why-is-rcp-emf-p2-databinding-so-hard.html
Concretely: we have some headless applications that should
run in an installation that contains much more plugins
that might even make the application fail. The app can
fail, when it uses no UI but a plugin that requires the
UI contributes to an extension point. From an osgi perspective
everything is fine, because the dependencies can be resolved
(because all plugins are in the installation) but since the
headless app does not start the UI it fails at runtime...
So, given I know the plugins I need (extracting them from the
product or the launch config):
How can I run my app that it uses only those plugins
(and ignores all other plugins in that installation)?
Or is there a way to hide some plugins?
Is there a command line option to use?
Any pointer to a webpage that can help me with that?
I spend quite some time searching but I could not
find anything that can help me :-(
Michael
Michael Scharf wrote:
Hi,
is there a way to run an application with only the plugins
specified in a launch configuration?
I have a set of small application each one uses only
a subset of the installed plugins. Is there a way to
convert the launch configuration is a script that
can run from the command line?
The problems are start-up time and contributions
I don't want.
Michael, you can create a new product definition and initialize that
product definition from a launch configuration. Look for the option in
the wizard. That should stub out the product file for you in a way that
should work. You may have to fill in application id related information
depending on your launch configuration. From the product definition, you
can do a lot of things... create a standalone application, hook into
headless build... etc...
Cheers,
Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/