Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Generation of feature metadata

Yes, it is the only way to include a feature while still allowing it to update independently. But that requires the match rule to be set. I know some projects do this, so it should be working fine. I'm not sure about all the other match rules (and in particular, no match rule).

Having said that, many projects choose not to allow features to be updated independently. Version ranges are used on bundle dependencies and features are locked. The reason for this is so that if you provision the same version of the product twice, you get the same install. If you use feature ranges, then your install may not be deterministic. There has been a lot written on this, and a lot of different opinions, so I really don't want to revisit that. :-)

Cheers,
Ian  

On Mon, Dec 1, 2014 at 12:45 AM, Andreas Sewe <andreas.sewe@xxxxxxxxxxxxxx> wrote:
Hi Ian,

> Typically features are included in the 'included features' tab, not the
> dependencies tab. The dependencies tab is a relic of the old update
> manager, and while we've tried to properly publish all parts of the
> feature.xml to p2, I'm sure there are some corner cases.

pardon me for hijacking this discussion, but isn't the Dependencies tab
the only way to also "include" a feature while still allowing for it to
be updated independently of the "including" feature? Or is there a way
to achieve similar behavior with the Included Features tab now? I was
under the impression that features included this way always had to be
present in the exact version (including qualifier) their parent feature
asks for.

Would be great if you could clarify things for me (and hopefully the OP
as well.

Best wishes,

Andreas

--
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/p2-dev



--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com | http://twitter.com/eclipsesource

Back to the top