0.0.0 versions in .target file [message #857077] |
Thu, 26 April 2012 08:12 |
Eclipse User |
|
|
|
Hej,
I'm observing a strange behaviour of PDE when setting a target platform
requiring InstallableUnits with versions of '0.0.0'. Consider this
target file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>
<target name="test" sequenceNumber="0">
<locations>
<location includeAllPlatforms="false" includeMode="planner"
includeSource="false" type="InstallableUnit">
<repository id="foo" location="https://foo/"/>
<repository id="bar" location="https://bar/"/>
<unit id="baz" version="0.0.0"/>
</location>
</locations>
</target>
The unit with the id 'baz' is deployed to both repositories 'foo' and
'bar' with different version identifiers:
foo: 1.0.0.v1234
1.0.0.v2345
2.0.0.v1234
bar: 1.0.0.SNAPSHOT-1234
2.0.0.SNAPSHOT-2345
When setting this target platform, PDE should use the artifact with the
largest qualifier (2.0.0.v1234, when I got this right) considering _all_
locations. But mostly it uses some other artifact, not the one with the
largest version.
I'm using such .target files within my tycho builds, and with tycho
there are obviously no problems getting the unit with the largest
version, even if it is deployed to more than one p2 repository.
Is this a bug or an unsupported feature? Any comment is greatly
appreciated. Regards,
Mirko Swillus
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds