Product installed with optional bundles not included in any of its features [message #649513] |
Wed, 19 January 2011 14:07  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.04953 seconds