Skip to main content



      Home
Home » Eclipse Projects » P2 » Can p2 install feature with version range?(org.eclipse.equinox.p2.director install)
Can p2 install feature with version range? [message #695165] Mon, 11 July 2011 03:22 Go to next message
Eclipse UserFriend
Hi guys,

I want to using org.eclipse.equinox.p2.director to install a feature with a range of version, such like [1.3.7,1.4.0] rather than a explicit version "1.3.9".
Can this be fulfilled? How?
<targetProductFolder>/eclipsec.exe
-application org.eclipse.equinox.p2.director
-repository ***
-installIU org.eclipse.cdt.feature.group/<version>
Re: Can p2 install feature with version range? [message #698912 is a reply to message #695165] Wed, 20 July 2011 09:09 Go to previous messageGo to next message
Eclipse UserFriend
-installIU seems to support installing based on a query. If it starts with Q: ...

See http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_director.html

and http://wiki.eclipse.org/Query_Language_for_p2

The wiki page isn't that up to date, but there should be a way to specify a version range.

See http://dev.eclipse.org/mhonarc/lists/p2-dev/msg03894.html for a thread where we try and use it Smile

PW
icon14.gif  Re: Can p2 install feature with version range? [message #699298 is a reply to message #698912] Thu, 21 July 2011 05:51 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply. I still can't find out the correct format of query sentence, is there any further help file about this?

And I have another question refer to you. I want to get all the dependencies(features and plugins) of a feature from some remote update sites, what should I do?
Re: Can p2 install feature with version range? [message #699344 is a reply to message #699298] Thu, 21 July 2011 08:03 Go to previous messageGo to next message
Eclipse UserFriend
George wrote on Thu, 21 July 2011 05:51
Thanks for your reply. I still can't find out the correct format of query sentence, is there any further help file about this?


Hopefully someone here could speak up about specifying version ranges in the p2 QL ...

Quote:

And I have another question refer to you. I want to get all the dependencies(features and plugins) of a feature from some remote update sites, what should I do?


That's the query in this message: http://dev.eclipse.org/mhonarc/lists/p2-dev/msg03885.html without the weird 'Â' characters.

PW
(no subject) [message #699849 is a reply to message #699344] Fri, 22 July 2011 09:13 Go to previous messageGo to next message
Eclipse UserFriend
On 7/21/11 2:03 PM, Paul Webster wrote:
> George wrote on Thu, 21 July 2011 05:51
> Hopefully someone here could speak up about specifying version ranges in
> the p2 QL ...
>
IIRC, use a matches operation ~= with one of the combinations:

IInstallableUnit ~= IRequirement
Version ~= VersionRange
String ~= VersionRange

It is on the p2QL wiki page ;)

- henrik
Re: (no subject) [message #700262 is a reply to message #699849] Sat, 23 July 2011 00:42 Go to previous message
Eclipse UserFriend
I need to use query language as the following fomat:
<targetProductFolder>/eclipsec.exe
-application org.eclipse.equinox.p2.director
-repository ***
-installIU Q:query sentence with version range

How to write the query sentence??
Previous Topic:How can I download all the dependencies with p2
Next Topic:P2 greedy behavior inside a feature
Goto Forum:
  


Current Time: Thu May 22 09:42:21 EDT 2025

Powered by FUDForum. Page generated in 0.05376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top