public class PreliminaryTargetPlatformImpl extends Object
Modifier and Type | Field and Description |
---|---|
protected LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
installableUnits
All installable units contained in the target platform.
|
FINAL_TARGET_PLATFORM_KEY
Constructor and Description |
---|
PreliminaryTargetPlatformImpl(Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectIUs,
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> externalIUs,
Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenArtifactIUs,
ExecutionEnvironmentResolutionHints executionEnvironment,
TargetPlatformFilterEvaluator filter,
LocalMetadataRepository localMetadataRepository,
IRawArtifactFileProvider externalArtifacts,
LocalArtifactRepository localArtifactRepository,
boolean includeLocalRepo,
MavenLogger logger) |
Modifier and Type | Method and Description |
---|---|
static LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
collectAllInstallableUnits(Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectIUs,
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> externalIUs,
ExecutionEnvironmentResolutionHints executionEnvironment) |
File |
getArtifactLocation(ArtifactKey artifact)
Returns the file system location of the given target platform artifact.
|
ExecutionEnvironmentResolutionHints |
getEEResolutionHints()
Returns additional information for resolving against the configured execution environment.
|
IRawArtifactFileProvider |
getExternalArtifacts() |
LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
getExternalUnits() |
TargetPlatformFilterEvaluator |
getFilter() |
Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
getInstallableUnits() |
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
getInstallableUnitsAsMetadataRepository()
Returns the target platform content as (immutable) p2 metadata repository.
|
File |
getLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> |
getOriginalMavenArtifactMap()
Returns the map from target platform installable units back to the contributing Maven
artifacts.
|
Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> |
getOriginalReactorProjectMap()
Returns the map from target platform installable units back to the contributing reactor
project.
|
void |
reportUsedLocalIUs(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> usedUnits) |
ArtifactKey |
resolveArtifact(String type,
String id,
String version)
Returns an artifact of the given type, id and matching version.
|
org.eclipse.equinox.p2.metadata.IInstallableUnit |
resolveUnit(String type,
String id,
org.eclipse.equinox.p2.metadata.Version version)
Same as
TargetPlatform.resolveArtifact(String, String, String) but returning the result as
IInstallableUnit . |
void |
saveLocalMavenRepository() |
protected final LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits
public PreliminaryTargetPlatformImpl(Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectIUs, Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> externalIUs, Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenArtifactIUs, ExecutionEnvironmentResolutionHints executionEnvironment, TargetPlatformFilterEvaluator filter, LocalMetadataRepository localMetadataRepository, IRawArtifactFileProvider externalArtifacts, LocalArtifactRepository localArtifactRepository, boolean includeLocalRepo, MavenLogger logger)
public static LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> collectAllInstallableUnits(Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectIUs, Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> externalIUs, ExecutionEnvironmentResolutionHints executionEnvironment)
public void reportUsedLocalIUs(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> usedUnits)
public LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> getExternalUnits()
public TargetPlatformFilterEvaluator getFilter()
public IRawArtifactFileProvider getExternalArtifacts()
public File getArtifactLocation(ArtifactKey artifact)
TargetPlatform
null
if the artifact does not
exist in the target platform, or if the given ArtifactKey refers to an
metadata-only "artifact" e.g. a product definition.public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getInstallableUnitsAsMetadataRepository()
P2TargetPlatform
public final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits()
getInstallableUnits
in interface P2TargetPlatform
public final ArtifactKey resolveArtifact(String type, String id, String version) throws IllegalArtifactReferenceException, DependencyResolutionException
TargetPlatform
null
matches any version
resolveArtifact
in interface TargetPlatform
type
- One of the types defined in ArtifactType
id
- The ID of the artifact to be found.version
- A version reference string selecting one exact version or versions from a range.
May be null
.IllegalArtifactReferenceException
- if an invalid type or malformed version reference is givenDependencyResolutionException
- if there is no matching artifact in the target platform.public final org.eclipse.equinox.p2.metadata.IInstallableUnit resolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.Version version) throws IllegalArtifactReferenceException, DependencyResolutionException
P2TargetPlatform
TargetPlatform.resolveArtifact(String, String, String)
but returning the result as
IInstallableUnit
.
Note: "artifact" in "resolveArtifact" refers to a Tycho artifact, which technically represent
a p2 installable unit and optionally the associated p2 artifact.resolveUnit
in interface P2TargetPlatform
IllegalArtifactReferenceException
DependencyResolutionException
public final ExecutionEnvironmentResolutionHints getEEResolutionHints()
P2TargetPlatform
getEEResolutionHints
in interface P2TargetPlatform
public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> getOriginalReactorProjectMap()
P2TargetPlatform
Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
getOriginalReactorProjectMap
in interface P2TargetPlatform
public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> getOriginalMavenArtifactMap()
P2TargetPlatform
Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
getOriginalMavenArtifactMap
in interface P2TargetPlatform
public final File getLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
getLocalArtifactFile
in interface P2TargetPlatform
public final void saveLocalMavenRepository()
saveLocalMavenRepository
in interface P2TargetPlatform
Copyright © 2008–2023 Eclipse Foundation. All rights reserved.