Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » how to change location of just some file in p2 repository when materialize?
icon5.gif  how to change location of just some file in p2 repository when materialize? [message #1717356] Sat, 12 December 2015 03:45 Go to next message
hiep lq is currently offline hiep lqFriend
Messages: 6
Registered: December 2015
Junior Member
(1) I have p2 repository for host zk-osgi at xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0/

(2) I have to change file zkbind by some reason. so i make new p2 repository contain changed file at xxxx:##dl.bintray.com/hieplq/generic/modifyBundle/1.0.0/

i want materialize all zk library from (1) and zk-bind from (2) so i have rmap as below
  <rm:locator pattern="^zkbind$" searchPathRef="modify.bundle" />
  <rm:locator pattern="^zcommon$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zel$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zhtml$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zk$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zkplus$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zul$" searchPathRef="zkoss.osgi" />
  <rm:locator pattern="^zweb$" searchPathRef="zkoss.osgi" />

  <rm:searchPath name="zkoss.osgi">
   <rm:provider componentTypes="osgi.bundle" readerType="p2">
    <rm:property key="buckminster.source" value="false" />
    <rm:property key="buckminster.mutable" value="false" />
    <rm:uri format="xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0/" />
   </rm:provider>
  </rm:searchPath>


  <rm:searchPath name="modify.bundle">
   <rm:provider componentTypes="osgi.bundle" readerType="p2">
    <rm:uri format="xxxx:##dl.bintray.com/hieplq/generic/modifyBundle/1.0.0/" />
   </rm:provider>
  </rm:searchPath>


but when i materialize, zkbind always download from (1) ever when resolve it said modify.bundle is selected for zkbind.

i guess buckminster priority for dependencies in same p2 repository than other.

anyone can help me figure out solution?

i have work-around by create other repository contain all bundle (modify and unmodify) xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0.1/
it work but isn't pretty good when i have many modify bundle of many difference repository.

i use eclipse luna sp2 with buckminster 4.4
Re: how to change location of just some file in p2 repository when materialize? [message #1717704 is a reply to message #1717356] Wed, 16 December 2015 07:22 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 12/12/2015 04:45, hiep lq wrote:
> (1) I have p2 repository for host zk-osgi at
> xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0/
>
> (2) I have to change file zkbind by some reason. so i make new p2
> repository contain changed file at
> xxxx:##dl.bintray.com/hieplq/generic/modifyBundle/1.0.0/
>
> i want materialize all zk library from (1) and zk-bind from (2) so i
> have rmap as below
>
> <rm:locator pattern="^zkbind$" searchPathRef="modify.bundle" />
> <rm:locator pattern="^zcommon$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zel$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zhtml$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zk$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zkplus$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zul$" searchPathRef="zkoss.osgi" />
> <rm:locator pattern="^zweb$" searchPathRef="zkoss.osgi" />
>
> <rm:searchPath name="zkoss.osgi">
> <rm:provider componentTypes="osgi.bundle" readerType="p2">
> <rm:property key="buckminster.source" value="false" />
> <rm:property key="buckminster.mutable" value="false" />
> <rm:uri
> format="xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0/" />
> </rm:provider>
> </rm:searchPath>
>
>
> <rm:searchPath name="modify.bundle">
> <rm:provider componentTypes="osgi.bundle" readerType="p2">
> <rm:uri
> format="xxxx:##dl.bintray.com/hieplq/generic/modifyBundle/1.0.0/" />
> </rm:provider>
> </rm:searchPath>
>
>
> but when i materialize, zkbind always download from (1) ever when
> resolve it said modify.bundle is selected for zkbind.
>
> i guess buckminster priority for dependencies in same p2 repository than
> other.
>
> anyone can help me figure out solution?
>
> i have work-around by create other repository contain all bundle (modify
> and unmodify) xxxx:##dl.bintray.com/hieplq/generic/zkossOSGiP2/8.0.0.1/
> it work but isn't pretty good when i have many modify bundle of many
> difference repository.
>
> i use eclipse luna sp2 with buckminster 4.4

Hi

if I remember correctly, you can specify the two providers in the same
searchPath, and then put the modifyBundle repository *before* the other
one. The p2 repository should be consulted in the order they are
specified, and if something is not found in the first one it is searched
for in the second one.

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Previous Topic:Problem resolving maven2 bundle
Next Topic:Use latest JDT for build
Goto Forum:
  


Current Time: Sun Apr 28 01:16:13 GMT 2024

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

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

Back to the top