Categories in P2 update site [message #1172542] |
Tue, 05 November 2013 19:47  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds