5

I need to export an eclipse RCP Application. While exporting, all the plugins that are added as dependencies are packaged into the product/plugins directory as show in the image. Is it possible to export the eclipse product without packaging some huge plugins and refer it from other location?

enter image description here

Any help is appreciated.

Thanks in advance.

Vikram Aruchamy
  • 163
  • 1
  • 11

2 Answers2

3

You can delete the plugins from the plugins directory and adapt the config file using the environment variable like below to refer the bundles from the user defined location

This is supported in org.eclipse.equinox.launcher_V1.3.0 or higher. You can use the environment variables like

osgi.bundles=$variable_name$/bundle-name.jar.

While parsing the config file, The launcher will substitute the value of the variable and start the bundle from the specified location.

Vikram Aruchamy
  • 163
  • 1
  • 11
0

The folder contains the plugins/fragments you added to your Target Platform and are also referenced as a Dependecy in your Features/Product.

To reduce it's size, remove unnecessary plugins from your target platform (ie. remove all and add required only) and use the 'Find unused dependencies' wizard at your plug-ins. I would start with the latter.

If it's still not enough then additionally you could modify the OSGi class-loader. See this QA: Loading of OSGi bundle dynamically from a file system

Adam Horvath
  • 1,249
  • 1
  • 10
  • 25