Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Bundle layout on disk
Bundle layout on disk [message #495087] Tue, 03 November 2009 17:49 Go to next message
Phil Denis is currently offline Phil DenisFriend
Messages: 26
Registered: October 2009
Junior Member
I'm playing around with running osgi standalone (no P2 and no eclipse.exe).

I'm just invoking the jar on the command line:
java -jar org.eclipse.osgi_3.5.0.v20090520.jar -console

I already have a bunch of bundles in my ${workingDir}/plugins subdirectory. When I execute the command installBundle("file:plugins/myBundle.jar") the bundle is added to the running framework and a quick "ss" shows that it was in fact installed.

On disk, the framework has copied my jar into ${osgi.bundlestore}/16/1/bundlefile. When I open that file I can see all of my classes and my MANIFEST.MF file.

I just want to install the bundle from its original disk location in the plugins subdirectory, like eclipse does. Why did the framework create a copy of my bundle instead of using its original location? Is there a way to make equinox behave like it does in eclipse where all of my plugins go into a subdirectory called plugins and are not copied elsewhere?
Re: Bundle layout on disk [message #495733 is a reply to message #495087] Thu, 05 November 2009 20:44 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Try using
installBundle("reference:file:plugins/myBundle.jar")

-Andrew
Phil Denis wrote:
> I'm playing around with running osgi standalone (no P2 and no eclipse.exe).
>
> I'm just invoking the jar on the command line:
> java -jar org.eclipse.osgi_3.5.0.v20090520.jar -console
>
> I already have a bunch of bundles in my ${workingDir}/plugins
> subdirectory. When I execute the command
> installBundle("file:plugins/myBundle.jar") the bundle is added to the
> running framework and a quick "ss" shows that it was in fact installed.
> On disk, the framework has copied my jar into
> ${osgi.bundlestore}/16/1/bundlefile. When I open that file I can see
> all of my classes and my MANIFEST.MF file.
>
> I just want to install the bundle from its original disk location in the
> plugins subdirectory, like eclipse does. Why did the framework create a
> copy of my bundle instead of using its original location? Is there a
> way to make equinox behave like it does in eclipse where all of my
> plugins go into a subdirectory called plugins and are not copied elsewhere?
Re: Bundle layout on disk [message #496398 is a reply to message #495733] Mon, 09 November 2009 21:34 Go to previous message
Phil Denis is currently offline Phil DenisFriend
Messages: 26
Registered: October 2009
Junior Member
Thanks, Andrew! Works like a charm ...
Previous Topic:how to remove plugin file after a succesful p2 update
Next Topic:Registering filters for specific servlets using equinox extension points
Goto Forum:
  


Current Time: Thu Apr 25 12:43:05 GMT 2024

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

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

Back to the top