abstract class TargetPlatformBaseImpl extends java.lang.Object implements P2TargetPlatform
| Modifier and Type | Field and Description |
|---|---|
(package private) IRawArtifactFileProvider |
artifacts |
(package private) ExecutionEnvironmentResolutionHints |
executionEnvironment
Execution environment information with information about the packages provided by the JRE.
|
protected java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
installableUnits
All installable units contained in the target platform.
|
private LocalArtifactRepository |
localArtifactRepository
Deprecated.
|
(package private) java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> |
mavenArtifactLookup
Map from installable units back to the contributing artifacts.
|
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> |
reactorProjectLookup
Map from installable units back to the contributing reactor project.
|
FINAL_TARGET_PLATFORM_KEY| Constructor and Description |
|---|
TargetPlatformBaseImpl(java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits,
ExecutionEnvironmentResolutionHints executionEnvironment,
IRawArtifactFileProvider artifacts,
LocalArtifactRepository localArtifactRepository,
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectLookup,
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenArtifactLookup) |
| Modifier and Type | Method and Description |
|---|---|
ExecutionEnvironmentResolutionHints |
getEEResolutionHints()
Returns additional information for resolving against the configured execution environment.
|
java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
getInstallableUnits() |
java.io.File |
getLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key) |
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> |
getOriginalMavenArtifactMap()
Returns the map from target platform installable units back to the contributing Maven
artifacts.
|
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> |
getOriginalReactorProjectMap()
Returns the map from target platform installable units back to the contributing reactor
project.
|
ArtifactKey |
resolveArtifact(java.lang.String type,
java.lang.String id,
java.lang.String version)
Returns an artifact of the given type, id and matching version.
|
org.eclipse.equinox.p2.metadata.IInstallableUnit |
resolveUnit(java.lang.String type,
java.lang.String id,
org.eclipse.equinox.p2.metadata.Version version)
Same as
TargetPlatform.resolveArtifact(String, String, String) but returning the result as
IInstallableUnit. |
void |
saveLocalMavenRepository() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstallableUnitsAsMetadataRepository, reportUsedLocalIUsgetArtifactLocationprotected final java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits
private final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectLookup
final java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenArtifactLookup
final ExecutionEnvironmentResolutionHints executionEnvironment
final IRawArtifactFileProvider artifacts
@Deprecated private LocalArtifactRepository localArtifactRepository
public TargetPlatformBaseImpl(java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits,
ExecutionEnvironmentResolutionHints executionEnvironment,
IRawArtifactFileProvider artifacts,
LocalArtifactRepository localArtifactRepository,
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> reactorProjectLookup,
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenArtifactLookup)
public final java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits()
getInstallableUnits in interface P2TargetPlatformpublic final ArtifactKey resolveArtifact(java.lang.String type, java.lang.String id, java.lang.String version) throws IllegalArtifactReferenceException, DependencyResolutionException
TargetPlatformnull matches any version
resolveArtifact in interface TargetPlatformtype - One of the types defined in ArtifactTypeid - 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(java.lang.String type,
java.lang.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 java.util.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 java.util.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 java.io.File getLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key)
getLocalArtifactFile in interface P2TargetPlatformpublic final void saveLocalMavenRepository()
saveLocalMavenRepository in interface P2TargetPlatform