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) |
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) |
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)
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getInstallableUnitsAsMetadataRepository()
P2TargetPlatformpublic final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits()
getInstallableUnits in interface P2TargetPlatformpublic final ArtifactKey resolveArtifact(String type, String id, String version) throws IllegalArtifactReferenceException, DependencyResolutionException
resolveArtifact in interface TargetPlatformIllegalArtifactReferenceExceptionDependencyResolutionExceptionpublic final org.eclipse.equinox.p2.metadata.IInstallableUnit resolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.Version version) throws IllegalArtifactReferenceException, DependencyResolutionException
P2TargetPlatformTargetPlatform.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 P2TargetPlatformIllegalArtifactReferenceExceptionDependencyResolutionExceptionpublic final ExecutionEnvironmentResolutionHints getEEResolutionHints()
P2TargetPlatformgetEEResolutionHints in interface P2TargetPlatformpublic final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> getOriginalReactorProjectMap()
P2TargetPlatformNote: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
getOriginalReactorProjectMap in interface P2TargetPlatformpublic final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> getOriginalMavenArtifactMap()
P2TargetPlatformNote: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
getOriginalMavenArtifactMap in interface P2TargetPlatformpublic final File getLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
getLocalArtifactFile in interface P2TargetPlatformpublic final void saveLocalMavenRepository()
saveLocalMavenRepository in interface P2TargetPlatformCopyright © 2008-2015 Eclipse Foundation. All Rights Reserved.