Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Product installed with optional bundles not included in any of its features
Product installed with optional bundles not included in any of its features [message #649513] Wed, 19 January 2011 14:07 Go to next message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Hi,

I have a product with one self-contained feature (the usual setup). Some
of the bundles in it declare optional dependencies that are not included
in the feature. When I build and install this product, the optional
bundles are included.

I use Helios SR1. This appears to be a change since SR0. Also, this does
not occur with PDE Export.

Is there a property/flag that I can use to mark optional dependencies as
non-greedy? Do I need to make optional requirements non-greedy in a
p2.inf in each bundle with optional dependencies? Strangely I don't see
this problem with fragments -- I'd expect to see them included too if
this were some sort of global policy.

Any hints would be greatly appreciated. Thanks.

--Peter
Re: Product installed with optional bundles not included in any of its features [message #649846 is a reply to message #649513] Thu, 20 January 2011 17:46 Go to previous messageGo to next message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
Just a quick follow-up -- I tried both package and bundle dependencies
(both optional), but either way I get a greedy requirement. A p2.inf in
the bundle root that sets greedy=false doesn't seem to be taken into
account.

Anyone experience a similar problem? Is there a buckminster property (in
cspex) that could affect it?

On 1/19/11 9:07 AM, Peter Nehrer wrote:
> Hi,
>
> I have a product with one self-contained feature (the usual setup). Some
> of the bundles in it declare optional dependencies that are not included
> in the feature. When I build and install this product, the optional
> bundles are included.
>
> I use Helios SR1. This appears to be a change since SR0. Also, this does
> not occur with PDE Export.
>
> Is there a property/flag that I can use to mark optional dependencies as
> non-greedy? Do I need to make optional requirements non-greedy in a
> p2.inf in each bundle with optional dependencies? Strangely I don't see
> this problem with fragments -- I'd expect to see them included too if
> this were some sort of global policy.
>
> Any hints would be greatly appreciated. Thanks.
>
> --Peter
Re: Product installed with optional bundles not included in any of its features [message #650099 is a reply to message #649846] Fri, 21 January 2011 17:37 Go to previous message
Peter Nehrer is currently offline Peter NehrerFriend
Messages: 241
Registered: July 2009
Senior Member
On 1/20/11 12:46 PM, Peter Nehrer wrote:
> Just a quick follow-up -- I tried both package and bundle dependencies
> (both optional), but either way I get a greedy requirement. A p2.inf in
> the bundle root that sets greedy=false doesn't seem to be taken into
> account.

My bad on p2.inf not being taken into account -- I had it in the root of
the bundle. When I put it in META-INF, the optional requirement is
generated with greedy=false (as instructed in p2.inf).
Previous Topic:Missing CSpec source required by component type osgi.bundle
Next Topic:Approach for splitting Buckminster jobs in Hudson
Goto Forum:
  


Current Time: Thu Apr 25 19:31:10 GMT 2024

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

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

Back to the top