Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Dump p2 URLs
Dump p2 URLs [message #671908] Thu, 19 May 2011 10:25 Go to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi,

Is there a way to make bucky spit out a list of the used p2 repositories during a provision action? The background is that I would like to generate a p2 bookmark.xml file that can be used to initialize a p2 client with a build's prerequisite locations.

Cheers
/Eike

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


Re: Dump p2 URLs [message #671961 is a reply to message #671908] Thu, 19 May 2011 13:04 Go to previous messageGo to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Eike,

You could save the BOM during materialization. It contains all resolution
results including the p2 repositories. Extracting the repositories should be
fairly simple with XSL or even sed. To save the BOM use "Save BOM" on the
resolution page of the Buckminster Import Wizard or with the CLI use import
-B <filename>.

HTH,
Carsten

On 19.05.2011 12:25, Eike Stepper wrote:
> Hi,
>
> Is there a way to make bucky spit out a list of the used p2 repositories during a provision action? The background is that I would like to generate a p2 bookmark.xml file that can be used to initialize a p2 client with a build's prerequisite locations.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Re: Dump p2 URLs [message #672044 is a reply to message #671961] Thu, 19 May 2011 16:50 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.05.2011 15:04, schrieb Carsten Reckord:
> Hi Eike,
>
> You could save the BOM during materialization. It contains all resolution
> results including the p2 repositories. Extracting the repositories should be
> fairly simple with XSL or even sed. To save the BOM use "Save BOM" on the
> resolution page of the Buckminster Import Wizard or with the CLI use import
> -B<filename>.
Unfortunately the bom contains the needed rmap info in the same way as the rmap itself, i.e. property references are not resolved/substituted ;-(

Cheers
/Eike

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


> HTH,
> Carsten
>
> On 19.05.2011 12:25, Eike Stepper wrote:
>> Hi,
>>
>> Is there a way to make bucky spit out a list of the used p2 repositories during a provision action? The background is that I would like to generate a p2 bookmark.xml file that can be used to initialize a p2 client with a build's prerequisite locations.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>


Re: Dump p2 URLs [message #672050 is a reply to message #672044] Thu, 19 May 2011 17:24 Go to previous messageGo to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Eike,

Yes, sadly the provider nodes are not expanded. But the resolution nodes
contain the fully expanded repository location in the "repository"
attribute, as well as a pointer to their provider to discern its type in
case the resolution's componentType=osgi.bundle/eclipse.feature is not
enough to distinguish between p2 and other sources.

On 19.05.2011 18:50, Eike Stepper wrote:
> Am 19.05.2011 15:04, schrieb Carsten Reckord:
>> Hi Eike,
>>
>> You could save the BOM during materialization. It contains all resolution
>> results including the p2 repositories. Extracting the repositories should be
>> fairly simple with XSL or even sed. To save the BOM use "Save BOM" on the
>> resolution page of the Buckminster Import Wizard or with the CLI use import
>> -B<filename>.
> Unfortunately the bom contains the needed rmap info in the same way as the rmap itself, i.e. property references are not resolved/substituted ;-(
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>> HTH,
>> Carsten
>>
>> On 19.05.2011 12:25, Eike Stepper wrote:
>>> Hi,
>>>
>>> Is there a way to make bucky spit out a list of the used p2 repositories during a provision action? The background is that I would like to generate a p2 bookmark.xml file that can be used to initialize a p2 client with a build's prerequisite locations.
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
Re: Dump p2 URLs [message #673982 is a reply to message #672050] Wed, 25 May 2011 11:26 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Thank you, Carsten!

It took a while and some failed builds but now we can produce an importable bookmarks.xml: https://hudson.eclipse.org/hudson/job/emf-cdo-integration/lastSuccessfulBuild/artifact/result/site.p2/bookmarks.xml

Cheers
/Eike

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



Am 19.05.2011 19:24, schrieb Carsten Reckord:
> Hi Eike,
>
> Yes, sadly the provider nodes are not expanded. But the resolution nodes
> contain the fully expanded repository location in the "repository"
> attribute, as well as a pointer to their provider to discern its type in
> case the resolution's componentType=osgi.bundle/eclipse.feature is not
> enough to distinguish between p2 and other sources.
>
> On 19.05.2011 18:50, Eike Stepper wrote:
>> Am 19.05.2011 15:04, schrieb Carsten Reckord:
>>> Hi Eike,
>>>
>>> You could save the BOM during materialization. It contains all resolution
>>> results including the p2 repositories. Extracting the repositories should be
>>> fairly simple with XSL or even sed. To save the BOM use "Save BOM" on the
>>> resolution page of the Buckminster Import Wizard or with the CLI use import
>>> -B<filename>.
>> Unfortunately the bom contains the needed rmap info in the same way as the rmap itself, i.e. property references are not resolved/substituted ;-(
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>> HTH,
>>> Carsten
>>>
>>> On 19.05.2011 12:25, Eike Stepper wrote:
>>>> Hi,
>>>>
>>>> Is there a way to make bucky spit out a list of the used p2 repositories during a provision action? The background is that I would like to generate a p2 bookmark.xml file that can be used to initialize a p2 client with a build's prerequisite locations.
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://www.esc-net.de
>>>> http://thegordian.blogspot.com
>>>> http://twitter.com/eikestepper
>>>>
>>>>


Previous Topic:Some source features are generated without the &quot;Source for &quot; prefix
Next Topic:NPE
Goto Forum:
  


Current Time: Tue Apr 23 16:11:39 GMT 2024

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

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

Back to the top