Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Get current version name for 'latest.released' product
Get current version name for 'latest.released' product [message #1737575] Sun, 10 July 2016 14:17 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

In the url attribute of a p2 director task, I need to do something like:

http://download.eclipse.org/sirius/updates/releases/4.0./${scope.product.version.name|lower}

This works when the user initially selects 'Mars' or 'Neon', but not for
"Latest (Neon)" or "Latest Released (Neon)". Is there a 'filter' or
variable that always resolves to the current version name?

Asking more generally, how do I install a given feature from a p2 site
whose location depends on the selected product version?

Felix
Re: Get current version name for 'latest.released' product [message #1737576 is a reply to message #1737575] Sun, 10 July 2016 14:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Felix,

Comments below...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 10.07.2016 um 17:17 schrieb Felix Dorner:
> Hi,
>
> In the url attribute of a p2 director task, I need to do something like:
>
> http://download.eclipse.org/sirius/updates/releases/4.0./${scope.product.version.name|lower}
>
> This works when the user initially selects 'Mars' or 'Neon', but not for "Latest (Neon)" or "Latest Released (Neon)".
> Is there a 'filter' or variable that always resolves to the current version name?
No, there's no such filter or variable available.I guess we could add such variables if you open a bugzilla.

>
> Asking more generally, how do I install a given feature from a p2 site whose location depends on the selected product
> version?
Generally these features and their transitive contents *should have* adequate version ranges in their dependencies and
generally, if there are multiple p2 repositories with different such sets of IUs, there also *should be* a composite
repo. So, in an ideal world it should all work by itself :P


Re: Get current version name for 'latest.released' product [message #1737603 is a reply to message #1737576] Mon, 11 July 2016 08:05 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hello Eike,

On 10-Jul-16 16:55, Eike Stepper wrote:
>> This works when the user initially selects 'Mars' or 'Neon', but not
>> for "Latest (Neon)" or "Latest Released (Neon)". Is there a 'filter'
>> or variable that always resolves to the current version name?
> No, there's no such filter or variable available.I guess we could add
> such variables if you open a bugzilla.

Ok I'll see.

>> Asking more generally, how do I install a given feature from a p2 site
>> whose location depends on the selected product version?
> Generally these features and their transitive contents *should have*
> adequate version ranges in their dependencies and generally, if there
> are multiple p2 repositories with different such sets of IUs, there also
> *should be* a composite repo. So, in an ideal world it should all work
> by itself :P
>
You mean that if I add both repositories (or one hypothetical composite
one), if the requested feature had proper version ranges the installer
would automatically use the one that matches? (I would really think
that's the way it should work but... I must see to believe.)

In the case of Sirius it's actually a weird one, since their repos
contain exactly the same code, however the mars repo is built against
mars, and the neon repo is built against neon.
Re: Get current version name for 'latest.released' product [message #1737605 is a reply to message #1737603] Mon, 11 July 2016 08:28 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 11.07.2016 um 11:05 schrieb Felix Dorner:
> You mean that if I add both repositories (or one hypothetical composite one), if the requested feature had proper
> version ranges the installer would automatically use the one that matches?
Yes.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:provision additional projects afterwards
Next Topic:ssh key settings
Goto Forum:
  


Current Time: Fri Apr 19 18:40:17 GMT 2024

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

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

Back to the top