updating product and p2.inf [message #640723] |
Mon, 22 November 2010 17:05  |
Eclipse User |
|
|
|
Hi,
I am having trouble updating my product via generated update site. So with some help from folks at eclipse irc channel I learned about p2.inf file. If I understand correctly I need p2.inf to make p2 aware of relationship between product and feature. Without adding p2.inf file I would get these errors when updating http://pastebin.com/ait69B55.
After I added p2.inf with version range I can update the product, but couple of things happen:
- In addition of having product id and version in 'Installed Software' section I also have feature id and version from the update: http://i.imgur.com/yR2Qk.png (Not sure if this is normal or not, but I would think that only root product would get updated with updated version number)
- Update site in addition to what's been defined in update site feature's build.properties file also includes 'Uncategorized' section for the same feature and all features that are included references of my feature: http://i.imgur.com/yS1Kg.png. Also, about the dependencies. I read in a post on this forum that in order for product's version to be set correctly product needs to have its id and version blank, dependencies should include only the feature that describes the product. This is what I did, but how then I exclude dependency features from update site? If I resort to creating another feature (x.feature) that includes only plugins that make up the product, and make product's feature (x.product.feature) depend on it, and in turn use x.feature for my update site then I don't get dependencies to be part of update site, but the qualifier for the product is not updated.
- If I try to uninstall update that I just performed, it seems as it goes fine (no errors), but when I relaunch my application feature is still there.
Lastly, am I going in the right direction by custom configuring p2 metadata via p2.inf? May be Buckminster performs this already and I just need to express this in properties when I perform action to build the product?
thanks,
Alex
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05986 seconds