You have to specify a full version in such case.
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version == '2.5.3')"
Operation completed in 31112 ms.
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version == '2.5.3.v201402240820')"
org.eclipse.xtext.sdk.feature.group=2.5.3.v201402240820
Operation completed in 27818 ms.
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version == '2.5.3')"
Operation completed in 31112 ms.
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version == '2.5.3.v201402240820')"
org.eclipse.xtext.sdk.feature.group=2.5.3.v201402240820
Operation completed in 27818 ms.
As for expressing ranges, only the following syntax works on command line:
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version >= '2.5' && iu.version < '2.6')"
org.eclipse.xtext.sdk.feature.group=2.5.0.v201312110906
org.eclipse.xtext.sdk.feature.group=2.5.1.v201402030714
org.eclipse.xtext.sdk.feature.group=2.5.2.v201402120812
org.eclipse.xtext.sdk.feature.group=2.5.3.v201402240820
org.eclipse.xtext.sdk.feature.group=2.5.4.v201404100756
Operation completed in 30705 ms.
$ eclipse-platform -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases -list q:"select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version >= '2.5' && iu.version < '2.6')"
org.eclipse.xtext.sdk.feature.group=2.5.0.v201312110906
org.eclipse.xtext.sdk.feature.group=2.5.1.v201402030714
org.eclipse.xtext.sdk.feature.group=2.5.2.v201402120812
org.eclipse.xtext.sdk.feature.group=2.5.3.v201402240820
org.eclipse.xtext.sdk.feature.group=2.5.4.v201404100756
Operation completed in 30705 ms.
However, if I start a Host OSGi Console in Eclipse RCP or only start an OSGi console with "eclipse -console -noSplash -noExit -vmargs -Declipse.application.launchDefault=false", this syntax works too:
osgi> start org.eclipse.equinox.p2.console
osgi> provlquery http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases "select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version ~= range('[2.5,2.6)'))" true
osgi> start org.eclipse.equinox.p2.console
osgi> provlquery http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases "select(iu|iu.id=='org.eclipse.xtext.sdk.feature.group' && iu.version ~= range('[2.5,2.6)'))" true
I haven't tested tycho-p2-extras-plugin:mirror goal, but I'm quite sure it behaves similarly. By the way, it would be interesting to hear if the ~= operator works in Tycho if you end up testing it.
Kind regards,
Mikhail Kalkov
Mikhail Kalkov
Eclipse Developer | Purple Scout AB |Âwww.purplescout.com
Kyrkogatan 20-22, SE-41110 Gothenburg, SwedenOn Fri, Jun 6, 2014 at 3:40 PM, Dennis HÃbner <dennis.huebner@xxxxxxxxx> wrote:
Ranges are not allowed, sorry.It must be a fully qualified version: 2.5.3.v201402240820Or use a non composite repository:Regards,Dennis.Am 06.06.2014 um 15:27 schrieb Dennis HÃbner <dennis.huebner@xxxxxxxxx>:Hi,_______________________________________________I think you can use a version tag inÂ<iu>
<id>org.eclipse.xtext.sdk.feature.group</id>
<version>[2.5.3,2.6)</version>
</iu>AlsoÂlatestVersionOnly should be set to false I guess.Regards,Dennis.Am 06.06.2014 um 14:55 schrieb Michael Vorburger <mike@xxxxxxxxxxxx>:Hi, we are having trouble understanding the exact 'IU' syntax that needs to be used to mirror only a specific version using theÂtycho-p2-extras-plugin..Â_______________________________________________I've seen the example on https://wiki.eclipse.org/Tycho/Additional_Tools, but if I wanted to locally mirror a specific version from sayÂhttp://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/, say Xtext 2.5.3, which is not the latest, we tried:<ius><iu>Â <id>org.eclipse.xtext.sdk.feature.group</id></iu><iu>Â <query>Â <_expression_>version == $0</_expression_>Â <parameters>2.5.3</parameters>Â Â</query></iu>but that doesn't seem quite right (Error during mirroring: Could not find IU [query _expression_='version == $0, parameters=[2.5.3]] in any of the source repositories).Thanks!
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
Dennis HÃbnerXtext Commiter / Build Engineer
Mobile: +49 (0) 151 / 17 39 67 07
Telefon: +49 (0) 431 / 990 268 70
Fax: +49 (0) 431 / 990 268 72
itemis AG
Niederlassung Kiel
Am Germaniahafen 1
24143 Kiel
http://www.itemis.de/
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus, Dr. Georg Pietrek, Jens Trompeter, Sebastian Neus
Aufsichtsrat: Dr. Burkhard Igel (Vors.), Stephan Grollmann, Michael Neuhaus
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
Dennis HÃbnerXtext Commiter / Build Engineer
Mobile: +49 (0) 151 / 17 39 67 07
Telefon: +49 (0) 431 / 990 268 70
Fax: +49 (0) 431 / 990 268 72
itemis AG
Niederlassung Kiel
Am Germaniahafen 1
24143 Kiel
http://www.itemis.de/
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus, Dr. Georg Pietrek, Jens Trompeter, Sebastian Neus
Aufsichtsrat: Dr. Burkhard Igel (Vors.), Stephan Grollmann, Michael Neuhaus
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user