updating product and p2.inf [message #640723] |
Mon, 22 November 2010 22:05 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
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
|
|
|
|
Re: updating product and p2.inf [message #643093 is a reply to message #642582] |
Sat, 04 December 2010 09:10 |
Philipp Nanz Messages: 46 Registered: February 2010 |
Member |
|
|
Hi Alex,
your build/product.ant is missing the roaming parameter.
Add
Otherwise the update will be installed into the same directory, where it was compiled on the build server. It isn't picked up there though, that's why P2 *thinks* it has been updated, but the actual bits are missing.
Also it is suggested to get rid of
<jvmarg value="-Declipse.p2.data.area=${destination}/p2" />
<jvmarg value="-Declipse.p2.profile=${profile}" />
unless you are using an antiquated version of Bucky.
Hope that helps!
Kind regards,
Phil
[Updated on: Sat, 04 December 2010 09:11] Report message to a moderator
|
|
|
Re: updating product and p2.inf [message #643095 is a reply to message #643093] |
Sat, 04 December 2010 09:17 |
Philipp Nanz Messages: 46 Registered: February 2010 |
Member |
|
|
And about the p2.inf: It's definitely useful for adding p2 metadata but definitely not required to get the update mechanism working (given that you provide the update site URL via some other means).
I myself use it only for configuring the update site URL as well as the min Java version and the default workspace dir.
So I would suggest not to mess with version ranges there unless you really need to.
[Updated on: Sat, 04 December 2010 09:18] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04624 seconds