Hi,
I need to distribute an application based on a bndrun-configuration. Using the bnd-launcher which wraps all required bundles, felix framework and all options into a single jar, which works fine, but not under all circumstances: One bundle needs to register a java security provider at runtime (in this case bouncycastle, which is available as an osgi-bundle), but fails to do so, because the signature of the provider-jar can not be verified when it is embedded into the launching bundle. My configuration works fine when each bundle is installed directly into the osgi framework. Wrapping the framework and all bundles into a single launcher jar may therefore not be an option for me.
What I need may be a custom gradle task to create a distribution which looks something like the default felix installation:
mybndrunconfiguration.zip
- bin/felix.jar
- bundle
- all runbundles
- conf
- config.properties
- launcher.properties (defines which bundles to launch etc)
-
start.sh/bat (launches bin/felix.jar with given configuration)
Before I start implementing this task myself, does something like this already exist? What approach would you suggest? Should this new task depend on the runbundles-task?
- Tobias