Class FinalTargetPlatformImpl

    • Field Detail

      • installableUnits

        protected final LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> 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.
    • Method Detail

      • 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: P2TargetPlatform
        Returns the target platform content as (immutable) p2 metadata repository.
      • getArtifactLocation

        public File getArtifactLocation​(ArtifactKey artifact)
        Description copied from interface: TargetPlatform
        Returns the file system location of the given target platform artifact. Not supported by the preliminary target platform.
        Returns:
        the location of the given artifact, or 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.
      • resolveArtifact

        public final ArtifactKey resolveArtifact​(String type,
                                                 String id,
                                                 String version)
                                          throws IllegalArtifactReferenceException,
                                                 DependencyResolutionException
        Description copied from interface: TargetPlatform
        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 null matches 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]
        In case there multiple matching artifacts, the artifact with the highest version is returned.
        Specified by:
        resolveArtifact in interface TargetPlatform
        Parameters:
        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.
        Returns:
        a matching artifact.
        Throws:
        IllegalArtifactReferenceException - if an invalid type or malformed version reference is given
        DependencyResolutionException - if there is no matching artifact in the target platform.
      • getOriginalReactorProjectMap

        public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​ReactorProjectIdentities> getOriginalReactorProjectMap()
        Description copied from interface: P2TargetPlatform
        Returns 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:
        getOriginalReactorProjectMap in interface P2TargetPlatform
      • getOriginalMavenArtifactMap

        public final Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,​IArtifactFacade> getOriginalMavenArtifactMap()
        Description copied from interface: P2TargetPlatform
        Returns 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:
        getOriginalMavenArtifactMap in interface P2TargetPlatform