P2 mirror to extract a IU from repository [message #521473] |
Wed, 17 March 2010 17:13 |
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds