-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TargetPlatformFactoryImpl.gatherP2InfUnits should use artifact version
Currently the implementation hard codes the version to 1.0.0 when parsing advice from a p2.inf. This can result in an IAE if the version is used in a range such as [1.0.0,$version$) where because [1.0.0,1.0.0) is not a valid range. Instead use the reactor project's actual version.
- Loading branch information
Showing
5 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
tycho-its/projects/p2Inf.virtualUnit/bundle/META-INF/p2.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# Create the virtual IU | ||
units.0.id=configure.pvu.bundle | ||
units.0.version=1.0.0 | ||
units.0.version=$version$ | ||
units.0.provides.1.namespace=org.eclipse.equinox.p2.iu | ||
units.0.provides.1.name=configure.pvu.bundle | ||
units.0.provides.1.version=1.0.0 | ||
units.0.provides.1.version=$version$ | ||
|
||
# Require in this bundle the created virtual IU | ||
requires.0.namespace=org.eclipse.equinox.p2.iu | ||
requires.0.name=configure.pvu.bundle | ||
requires.0.range=0.0.0 | ||
requires.0.range=$version$ | ||
|
||
# Specify update advice with a version range that is invalid if $version$ expands to 1.0.0 | ||
# For this example it should expand to 2.0.0 | ||
update.id = update.pvu.bundle | ||
update.range = [1.0.0,$version$) | ||
update.severity = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters