How can I export an eclipse rcp product without packaging dependencies to the plugins folder

I need to export an RCP application for eclipse. When exporting, all plugins that are added as dependencies are packaged in the product / plugin catalog, as shown in the image. Is it possible to export an eclipse product without packing huge plugins and link to it from another place?

enter image description here

Any help is appreciated.

Thanks in advance.

+5
source share
2 answers

You can remove plugins from the plugins directory and adapt the configuration file using the environment variable, as shown below, to link to nodes from a user-defined location

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

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

When analyzing the configuration file, The launcher will replace the variable and run the package from the specified location.

+3
source

The folder contains plugins / snippets added to your target platform, and is also referred to as Dependecy in your functions / products.

To reduce the size, remove unnecessary plugins from the target platform (that is, delete all and add only required ones) and use the "Search for unused dependencies" wizard in your plugins. I would start with the latter.

If this is not enough, you can change the OSGi loader class. See This QA: Downloading an OSGi Dynamic Package from a File System

0
source

Source: https://habr.com/ru/post/1271924/


All Articles