Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » help on p2 repository and update operation
help on p2 repository and update operation [message #675684] Wed, 01 June 2011 03:57 Go to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Hi all
I'm trying to add to my rcp application the update action from a p2
repository.

I'm using eclipse helios (r.2).

I have my headless build that export my rcp application and creates the p2
repository (this is fine).

Now there is something that is not really clear to me.

all the plug-ins use an id pattern version: 1.2.3.qualifier
I have a product version (still with an 4.5.2.qualifier)
And I have features with id which brings still a qualifier ..

Now . let's say I want to modify just one plug-in and release the new build
on the p2 server for the updates.

I believe that I should just export the only one I have modified and not all
of them, as the qualifier of all the plug-ins will be automatically updated,
even if I have not changed anything . is that correct?

I'm wondering if it is not better just to use a specific version number (not
the qualifier that get replaced every time a build is performed) so that
unchanged feature will stay the same.

One more question .
Could someone explain me a bit better the concept of grouping feature into
categories. Where do I have to create this category and how to treat it?

Thanks in advance
Carmelo
Re: help on p2 repository and update operation [message #675760 is a reply to message #675684] Wed, 01 June 2011 08:41 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

By default, exporting a product pegs the feature versions and plugin versions exactly. We update by incrementing the product version (i.e. 3.6.0 to 3.6.1 to 3.6.2) which updates all contained features that have changed (and by extension, all plugins).

If you wanted to update one plugin, the absolute minimum you need to do is increment the plugin version and feature version. Then you need to take special steps if you want to update a feature without updating your product as well.

See http://aniefer.blogspot.com/2009/03/building-p2-rcp-products-in-eclipse.html and http://aniefer.blogspot.com/2009/07/composing-and-updating-custom-eclipse.html for more information.

PW


Previous Topic:A working example of custom p2 provisioning action
Next Topic:Equinox and windows logo requirements - HELP
Goto Forum:
  


Current Time: Sat Aug 30 10:32:56 EDT 2014

Powered by FUDForum. Page generated in 0.03411 seconds