public interface TargetPlatform
Set of artifacts which can be used by the build of a project, e.g. to resolve the project's
dependencies.
In current Tycho (cf. bug 353889), first a preliminary target platform is computed for each
reactor project to determine the reactor build order. Then, the final target platform is computed
as a normal build step. Note that only the final target platform must be used to produce build
results. The preliminary target platform contains partial information ("dependency-only IUs")
about the reactor artifacts, which must not end up in the build results.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetArtifactLocation(ArtifactKey artifact) Returns the file system location of the given target platform artifact.org.eclipse.equinox.p2.repository.artifact.IArtifactRepositoryorg.eclipse.equinox.p2.repository.metadata.IMetadataRepositorybooleanisFileAlreadyAvailable(ArtifactKey artifactKey) resolveArtifact(String type, String id, String versionRef) Returns an artifact of the given type, id and matching version.default ResolvedArtifactKeyresolvePackage(String packageName, String versionRef)
-
Field Details
-
FINAL_TARGET_PLATFORM_KEY
Key under which the final target platform is stored in the reactor project instances.- See Also:
-
PRELIMINARY_TARGET_PLATFORM_KEY
Key under which the preliminary target platform is stored in the reactor project instances.- See Also:
-
-
Method Details
-
resolveArtifact
ArtifactKey resolveArtifact(String type, String id, String versionRef) throws IllegalArtifactReferenceException, DependencyResolutionException Returns an artifact of the given type, id and matching version. The version reference string matches versions according to the following rules:- "0.0.0" or
nullmatches any version - "1.2.3.qualifier", i.e. a version with a literal "qualifier", matches all versions in the range [1.2.3,1.2.4)
- all other version references match artifacts with exactly that version. For example the version reference "1.2.3.v2014" stands for the strict version range [1.2.3.v2014,1.2.3.v2014]
- Parameters:
type- One of the types defined inArtifactTypeid- The ID of the artifact to be found.versionRef- A version reference string selecting one exact version or versions from a range. May benull.- Returns:
- a matching artifact.
- Throws:
IllegalArtifactReferenceException- if an invalid type or malformed version reference is givenDependencyResolutionException- if there is no matching artifact in the target platform.
- "0.0.0" or
-
getArtifactLocation
Returns the file system location of the given target platform artifact.- Returns:
- the location of the given artifact, or
nullif the artifact does not exist in the target platform, or if the givenArtifactKeyrefers to an metadata-only "artifact" e.g. a product definition.
-
isFileAlreadyAvailable
-
resolvePackage
default ResolvedArtifactKey resolvePackage(String packageName, String versionRef) throws DependencyResolutionException, IllegalArtifactReferenceException -
getMetadataRepository
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()- Returns:
- the target platform content as a
IMetadataRepository.
-
getArtifactRepository
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository()- Returns:
- the target platform content as a
IArtifactRepository.
-