Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » P2 mirror to extract a IU from repository
P2 mirror to extract a IU from repository [message #521473] Wed, 17 March 2010 13:13 Go to next message
Nikolas Falco is currently offline Nikolas Falco
Messages: 7
Registered: July 2009
Junior Member
Regardless of the fact that a feature declares to require or include another feature,
the content.xml created by P2 always lists the required or included feature inside the <requires> element.
In other words, the information that a feature is required but not included seems to get lost in the repository.
    <unit id='A.feature.feature.group' version='4.6.0.v05002430' singleton='false'>
      <update id='A.feature.feature.group' range='[0.0.0,4.6.0.v05002430)' severity='0'/>
      ...
      <requires size='4'>
        <required namespace='org.eclipse.equinox.p2.iu' name='B.feature.group' range='[4.6.0.v05002430,4.6.0.v05002430]'/>
        <required namespace='org.eclipse.equinox.p2.iu' name='A.plugin1' range='[4.6.0.v05002430,4.6.0.v05002430]'/>
        <required namespace='org.eclipse.equinox.p2.iu' name='A.plugin2' range='[4.6.0.v05002430,4.6.0.v05002430]'/>
        <required namespace='org.eclipse.equinox.p2.iu' name='A.feature.jar' range='[4.6.0.v05002430,4.6.0.v05002430]'>
          <filter>
            (org.eclipse.update.install.features=true)
          </filter>
        </required>
      </requires>
      ...
    </unit>

As a consequence, P2 mirror will always extract from the repository a cumulative JAR file which includes not only the included features
but also the required ones.

Sample:
Original feature A requires B and includes C
Repository contains A, B ,C and A declares to require B and C
I want extract from P2 repository A product, mirror IU A.feature.feature.group produces a JAR which contains A B C while I would expect the JAR to contain only A and C.
Is not able to mirror listing all IU because are not known from the beginning.
Re: P2 mirror to extract a IU from repository [message #522918 is a reply to message #521473] Wed, 24 March 2010 10:15 Go to previous message
Nikolas Falco is currently offline Nikolas Falco
Messages: 7
Registered: July 2009
Junior Member
Anyone have idea?
It's a bug?
Previous Topic:Check for min Java Execution Environment prior to Update
Next Topic:Installed features using p2.mirror are not in the registry
Goto Forum:
  


Current Time: Fri Apr 18 06:59:16 EDT 2014

Powered by FUDForum. Page generated in 0.05916 seconds