Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Support jar:file protocol in OSGI Storage ?(creating self contained executable jar with headless OSGI application)
Support jar:file protocol in OSGI Storage ? [message #1770155] Tue, 08 August 2017 16:49
Jakub Siberski is currently offline Jakub SiberskiFriend
Messages: 1
Registered: August 2017
Junior Member
In my team we have desktop application that is based on Eclipse (N4JS).
In addition to that we need to provided headless version that would provide some core functionality.

We did create such a tool, a plain self contained executable JAR.
Unfortunately to achieve this we had to cut many corners.
We need to use workarounds for extension points,
we need keep alternative logic implementations of the core for the
UI and the headless product, keep two types of bootstrapping in sync, etc, etc.

We want to move to the headless implementation based on the eclipse platform.
Additionally final product should still be self contained executable jar.

I did experiment a bit with the implementation and I have solution
that fulfills all the above (example on GH). Unfortunately
there is one Equinox / OSGI behavior that I would like to avoid.
During execution one of the first things I do is installing bundles
with BundleContext.installBundle, after which I can call code from any bundle.
But all the bundles will be actually installed to the filesystem
into the location defined by the "osgi.configuration.area".

Because of (many) reasons I would like to avid this manifestation of bundles
in the filesystem. I had tried few things but in the end my efforts
break at Storage.getContentFile() or related methods
in the org.eclipse.osgi.storage.Storage.

To summarize, I have some solution on how to deliver and bootstrap Eclipse / Equinox
headless application in a self contained JAR.
But is there a way to instrument the system to:
- avoid putting the bundles into the filesystem that is done by the OSGI?
- make Storage work with formats than plain other than file:/..., i.e. jar:file:/...?
Previous Topic:Installing plugins using command line Failing
Next Topic:Unable to see plugin in fresh Eclipse instance
Goto Forum:
  


Current Time: Tue Oct 15 16:02:08 GMT 2024

Powered by FUDForum. Page generated in 0.04060 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top