Adding reference to other repostiories from p2.inf [message #903363] |
Thu, 23 August 2012 11:07 |
|
Hi,
I have a Tycho build which produces a p2 repository. Tycho consumes
category.xml and supports p2.inf to tweak the output repository.
I'd like to add a reference to another repository from my p2 repo. It's
basically about adding thise lines to content.xml:
<repository uri='@{associate.site}' type='0' options='1'/>
<repository uri='@{associate.site}' type='1' options='1'/>
It used to be called "associate sites" in site.xml IIRC.
Can someone point me to some example or documentation or help on how to
achieve this operation using a p2.inf?
Cheers,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
|
|
|
|
Re: Adding reference to other repostiories from p2.inf [message #924203 is a reply to message #917993] |
Wed, 26 September 2012 15:58 |
Cristiano Gavião Messages: 279 Registered: July 2009 |
Senior Member |
|
|
Marcos Munoz wrote on Thu, 20 September 2012 19:24You can go and check http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_actions_touchpoints.html
You can associate the repositories by adding to your p2.inf file the next:
instructions.configure=
org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//siteof interest.test.com/,type:0,name:Site Name,enabled:true); \ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//siteof interest2.test.com/,type:1,name:Site 2 Name,enabled:true); \
I could use this approach when building a product, but p2.inf doesn't work building only a p2.
@Marcos, could you use it to build a p2?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04088 seconds