Class GAVArtifactDescriptor
- java.lang.Object
-
- org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor
-
- org.eclipse.tycho.repository.util.GAVArtifactDescriptorBase
-
- org.eclipse.tycho.repository.local.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.tycho.repository.util.GAVArtifactDescriptorBase
coordinates
-
-
Constructor Summary
Constructors Constructor Description GAVArtifactDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey p2Key)
Creates a newGAVArtifactDescriptorBase
instance with the given p2 artifact key.GAVArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor base)
Creates a newGAVArtifactDescriptor
instance based on the given p2 artifact descriptor.GAVArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor p2Descriptor, MavenRepositoryCoordinates mavenCoordinates)
Creates a newGAVArtifactDescriptor
instance based on the given p2 artifact descriptor and Maven coordinates.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static MavenRepositoryCoordinates
getP2DerivedCoordinates(org.eclipse.equinox.p2.metadata.IArtifactKey key, java.util.Map<java.lang.String,java.lang.String> properties)
private static MavenRepositoryCoordinates
readOrDeriveMavenCoordinates(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor base)
-
Methods inherited from class org.eclipse.tycho.repository.util.GAVArtifactDescriptorBase
getMavenCoordinates, readMavenCoordinateProperties, setMavenCoordinateProperties
-
-
-
-
Constructor Detail
-
GAVArtifactDescriptor
public GAVArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor p2Descriptor, MavenRepositoryCoordinates mavenCoordinates)
Creates a newGAVArtifactDescriptor
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 newGAVArtifactDescriptor
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 aGAVArtifactDescriptor
.
-
GAVArtifactDescriptor
public GAVArtifactDescriptor(org.eclipse.equinox.p2.metadata.IArtifactKey p2Key)
Creates a newGAVArtifactDescriptorBase
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)
-
-