Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to mirror only specific (non latest) version

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.

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.

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

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

Eclipse Developer | Purple Scout AB | www.purplescout.com
Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden


On 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.v201402240820

Or 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!

_______________________
Michael Vorburger
http://www.vorburger.ch
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

Dennis Hübner

Xtext 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übner

Xtext 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



Back to the top