Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » Categories in P2 update site
Categories in P2 update site [message #1172542] Tue, 05 November 2013 19:47 Go to next message
Zhaopeng XUAN is currently offline Zhaopeng XUAN
Messages: 3
Registered: October 2013
Junior Member
Hello all,

The question is: In one P2 update site , there are lots of version for one same category, how does P2 find the latest one from source code side?

For example:
In source code, I use following code to get the latest category:
QueryUtil.createLatestQuery(QueryUtil.createIUCategoryQuery());
It will return the category with biggest version.

But in fact, I saw the content.xml, for this category, the version of requirements are old rather than the latest version.

So: How do I get the latest categories and feature groups in source code side?

Thanks a lot
Re: Categories in P2 update site [message #1173316 is a reply to message #1172542] Wed, 06 November 2013 07:36 Go to previous message
Zhaopeng XUAN is currently offline Zhaopeng XUAN
Messages: 3
Registered: October 2013
Junior Member
Maybe it is not clear, I give a example to explain my problem:

In content.xml(content.jar) of one P2 update site,

<unit id='FeatureIDE 2.6' version='1.0.0.80_-7UcCZTfh90-Uz00z-Vz-YQkz'>
<properties size='2'>
<property name='org.eclipse.equinox.p2.name' value='FeatureIDE 2.6'/>
<property name='org.eclipse.equinox.p2.type.category' value='true'/>
</properties>

<requires size='16'>
<require> </require>
...//here the version of requires is latest version
</requires>
</unit>

<unit id='FeatureIDE 2.6' version='1.0.0.8A_-SDFSDFSDFSDFUz00z-Vz-YQkz'>
<properties size='2'>
<property name='org.eclipse.equinox.p2.name' value='FeatureIDE 2.6'/>
<property name='org.eclipse.equinox.p2.type.category' value='true'/>
</properties>

<requires size='16'>
<require> </require>
...//here the version of requires old version
</requires>
</unit>

Then how does p2 knows which category is latest??

Thanks
Previous Topic:Publishing non-plugin files in an update site
Goto Forum:
  


Current Time: Thu Jul 31 19:40:25 EDT 2014

Powered by FUDForum. Page generated in 0.01448 seconds