Class GAVArtifactDescriptor

  • All Implemented Interfaces:
    org.eclipse.equinox.p2.metadata.expression.IMemberProvider, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor

    public class GAVArtifactDescriptor
    extends GAVArtifactDescriptorBase
    Key which uniquely identifies an artifact in both the p2 ("artifact descriptor") and Maven ("coordinates") artifact repository address space.
    • Field Summary

      • Fields inherited from class org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor

        key, MEMBER_ARTIFACT_KEY, MEMBER_PROCESSING_STEPS, MEMBER_PROPERTIES, MEMBER_REPOSITORY, processingSteps, properties
      • Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor

        ARTIFACT_CHECKSUM, ARTIFACT_MD5, ARTIFACT_SIZE, DOWNLOAD_CHECKSUM, DOWNLOAD_CONTENTTYPE, DOWNLOAD_MD5, DOWNLOAD_SIZE, FORMAT, FORMAT_PACKED, TYPE_ZIP
    • Constructor Detail

      • GAVArtifactDescriptor

        public GAVArtifactDescriptor​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor p2Descriptor,
                                     MavenRepositoryCoordinates mavenCoordinates)
        Creates a new GAVArtifactDescriptor instance based on the given p2 artifact descriptor and Maven coordinates. In case there are also Maven coordinate properties in the p2 descriptor base, these will be overwritten.
        Parameters:
        p2Descriptor - The p2 artifact descriptor of the referenced artifact.
        mavenCoordinates - The Maven coordinates of the referenced artifact.
      • GAVArtifactDescriptor

        public GAVArtifactDescriptor​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor base)
        Creates a new GAVArtifactDescriptor instance based on the given p2 artifact descriptor. If the given descriptor contains Maven coordinates as properties, these values are used. Otherwise, fake Maven coordinates with a groupId starting with "p2" will be derived from the p2 artifact key.
        Parameters:
        base - The p2 artifact descriptor to be copy-converted into a GAVArtifactDescriptor.
      • GAVArtifactDescriptor

        public GAVArtifactDescriptor​(org.eclipse.equinox.p2.metadata.IArtifactKey p2Key)
        Creates a new GAVArtifactDescriptorBase instance with the given p2 artifact key. The instance will be a p2 descriptor for the canonical format and have fake Maven coordinates with a groupId starting with "p2" derived from the key.
        Parameters:
        p2Key - The p2 artifact key of the referenced canonical artifact.
    • Method Detail

      • getP2DerivedCoordinates

        private static MavenRepositoryCoordinates getP2DerivedCoordinates​(org.eclipse.equinox.p2.metadata.IArtifactKey key,
                                                                          java.util.Map<java.lang.String,​java.lang.String> properties)
        Returns:
        fake Maven coordinates derived from the given key; never null
      • readOrDeriveMavenCoordinates

        private static MavenRepositoryCoordinates readOrDeriveMavenCoordinates​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor base)