Package org.eclipse.tycho.p2.target
Class FinalTargetPlatformImpl
java.lang.Object
org.eclipse.tycho.p2.target.FinalTargetPlatformImpl
- All Implemented Interfaces:
P2TargetPlatform,TargetPlatform
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit>All installable units contained in the target platform.Fields inherited from interface org.eclipse.tycho.TargetPlatform
FINAL_TARGET_PLATFORM_KEY -
Constructor Summary
ConstructorsConstructorDescriptionFinalTargetPlatformImpl(LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits, ExecutionEnvironmentResolutionHints executionEnvironment, IRawArtifactFileProvider jointArtifacts, LocalArtifactRepository localArtifactRepository, Map<org.eclipse.equinox.p2.metadata.IInstallableUnit, IArtifactFacade> mavenArtifactLookup, Map<org.eclipse.equinox.p2.metadata.IInstallableUnit, ReactorProjectIdentities> reactorProjectLookup) -
Method Summary
Modifier and TypeMethodDescriptiongetArtifactLocation(ArtifactKey artifact) Returns additional information for resolving against the configured execution environment.final Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryReturns the target platform content as (immutable) p2 metadata repository.final FilegetLocalArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key) final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> Returns the map from target platform installable units back to the contributing Maven artifacts.final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> Returns the map from target platform installable units back to the contributing reactor project.booleanisFileAlreadyAvailable(ArtifactKey artifact) voidreportUsedLocalIUs(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> usedUnits) final ArtifactKeyresolveArtifact(String type, String id, String version) final org.eclipse.equinox.p2.metadata.IInstallableUnitresolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.Version version) Same asTargetPlatform.resolveArtifact(String, String, String)but returning the result asIInstallableUnit.org.eclipse.equinox.p2.metadata.IInstallableUnitresolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) final void
-
Field Details
-
installableUnits
All installable units contained in the target platform. This includes reactor-external content and all results of upstream reactor projects (or all projects in case of the preliminary target platform where the reactor build order isn't known yet). Configured and automatic filters have been applied.
-
-
Constructor Details
-
FinalTargetPlatformImpl
public FinalTargetPlatformImpl(LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> installableUnits, ExecutionEnvironmentResolutionHints executionEnvironment, IRawArtifactFileProvider jointArtifacts, LocalArtifactRepository localArtifactRepository, Map<org.eclipse.equinox.p2.metadata.IInstallableUnit, IArtifactFacade> mavenArtifactLookup, Map<org.eclipse.equinox.p2.metadata.IInstallableUnit, ReactorProjectIdentities> reactorProjectLookup)
-
-
Method Details
-
reportUsedLocalIUs
public void reportUsedLocalIUs(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> usedUnits) -
getInstallableUnitsAsMetadataRepository
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getInstallableUnitsAsMetadataRepository()Description copied from interface:P2TargetPlatformReturns the target platform content as (immutable) p2 metadata repository. -
getInstallableUnits
- Specified by:
getInstallableUnitsin interfaceP2TargetPlatform
-
resolveArtifact
public final ArtifactKey resolveArtifact(String type, String id, String version) throws IllegalArtifactReferenceException, DependencyResolutionException - Specified by:
resolveArtifactin interfaceTargetPlatform- Throws:
IllegalArtifactReferenceExceptionDependencyResolutionException
-
resolveUnit
public final org.eclipse.equinox.p2.metadata.IInstallableUnit resolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.Version version) throws IllegalArtifactReferenceException, DependencyResolutionException Description copied from interface:P2TargetPlatformSame asTargetPlatform.resolveArtifact(String, String, String)but returning the result asIInstallableUnit. Note: "artifact" in "resolveArtifact" refers to a Tycho artifact, which technically represent a p2 installable unit and optionally the associated p2 artifact.- Specified by:
resolveUnitin interfaceP2TargetPlatform- Throws:
IllegalArtifactReferenceExceptionDependencyResolutionException
-
resolveUnit
public org.eclipse.equinox.p2.metadata.IInstallableUnit resolveUnit(String type, String id, org.eclipse.equinox.p2.metadata.VersionRange versionRange) throws IllegalArtifactReferenceException, DependencyResolutionException - Specified by:
resolveUnitin interfaceP2TargetPlatform- Throws:
IllegalArtifactReferenceExceptionDependencyResolutionException
-
getEEResolutionHints
Description copied from interface:P2TargetPlatformReturns additional information for resolving against the configured execution environment.- Specified by:
getEEResolutionHintsin interfaceP2TargetPlatform
-
getOriginalReactorProjectMap
public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,ReactorProjectIdentities> getOriginalReactorProjectMap()Description copied from interface:P2TargetPlatformReturns the map from target platform installable units back to the contributing reactor project.Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
- Specified by:
getOriginalReactorProjectMapin interfaceP2TargetPlatform
-
getOriginalMavenArtifactMap
public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> getOriginalMavenArtifactMap()Description copied from interface:P2TargetPlatformReturns the map from target platform installable units back to the contributing Maven artifacts.Note: The map may contain additional installable units as keys, i.e. not all keys are necessarily part of the target platform.
- Specified by:
getOriginalMavenArtifactMapin interfaceP2TargetPlatform
-
getLocalArtifactFile
- Specified by:
getLocalArtifactFilein interfaceP2TargetPlatform
-
saveLocalMavenRepository
public final void saveLocalMavenRepository()- Specified by:
saveLocalMavenRepositoryin interfaceP2TargetPlatform
-
getArtifactLocation
- Specified by:
getArtifactLocationin interfaceTargetPlatform
-
isFileAlreadyAvailable
- Specified by:
isFileAlreadyAvailablein interfaceTargetPlatform
-