Search code examples
consoleosgiosgi-bundle

Osgi commandline install multiple plugins simultaneously


Is it possible to simultaneously load all the plugins available in a directory in osgi commandline?

path/to/bin/java -jar org.eclipse.osgi_3.6.1.R36x_v20100806 -console -clean

This brought up the osgi console and activated the org.eclipse. ss shows me this

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.6.1.R36x_v20100806

I have a bunch of bundles in a directory: /path/to/all/bundles I can certainly do one-by-one on the osgi console using the following:

osgi> install file:///path/to/bundle/org.springframework.osgi.core

I want to be able to load all bundles at once and next step is to be able to install it as well.

Any pointers?

Thanks!


Solution

  • I agree that you definitely don't want to install all your bundles by hand every time. Installing the single Apache FileInstall bundle will then automatically load anything you put into a directory (./load) by default.