public interface DependencyArtifacts
DependencyArtifacts is a collection of artifacts and their corresponding metadata.
Each artifact represents a file and can be uniquely identified either by (type,id,version) or by (location,classifier) tuple. Each artifact has associated (p2) metadata.
In some cases it is not possible or not practical to associate external dependency metadata, i.e.
metadata not coming from a reactor project, with a specific artifact. Such metadata can only be
accessed via getInstallableUnits()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConventional qualifier used to denote "ANY QUALIFIER" in feature.xml and .product files. -
Method Summary
Modifier and TypeMethodDescriptiongetArtifact(File location) Returns map of artifact descriptors at the given location.getArtifact(String type, String id, String version) Returns artifact of the given type and id and best matching version or null if no such artifact is found.getArtifact(ArtifactKey key) Returns all artifacts.getArtifacts(String type) Returns all artifacts of the given type.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> Collection of dependency metadata (p2 installable units).getMavenProject(File location) Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> Set of IInstallableUnits in the resolved project dependencies that come from outside the local reactor, ornullif the the project dependencies were not resolved from a p2 target platform.voidtoDebugString(StringBuilder sb, String linePrefix) For debug purposes only, do not use.
-
Field Details
-
ANY_QUALIFIER
Conventional qualifier used to denote "ANY QUALIFIER" in feature.xml and .product files. See TYCHO-383.- See Also:
-
-
Method Details
-
getArtifacts
List<ArtifactDescriptor> getArtifacts()Returns all artifacts. -
getFragments
Collection<ArtifactDescriptor> getFragments()- Returns:
- additional fragments that might be attached to the artifacts
-
getArtifacts
Returns all artifacts of the given type. -
getArtifact
Returns artifact of the given type and id and best matching version or null if no such artifact is found.This method uses the following version selection rules
- 0.0.0 or null matches the latest version
- 1.2.3, i.e. without a qualifier, is equivalent to [1.2.3,1.2.4) and matches 1.2.3 with the latest qualifier.
- 1.2.3.qualifier, i.e. literal "qualifier", is equivalent to [1.2.3,1.2.4) and matches 1.2.3 with the latest qualifier.
- all other versions match artifact with that exact version, 1.2.3.foo is equivalent to [1.2.3.foo]
-
getMavenProject
-
getArtifact
Returns map of artifact descriptors at the given location. The map is keyed by maven artifact classifiers. For dependency artifacts and the main reactor project artifact, the classifier isnull. -
getArtifact
-
getNonReactorUnits
Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getNonReactorUnits()Set of IInstallableUnits in the resolved project dependencies that come from outside the local reactor, ornullif the the project dependencies were not resolved from a p2 target platform.- Returns:
- Set<IInstallableUnit> or null
-
getInstallableUnits
Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getInstallableUnits()Collection of dependency metadata (p2 installable units). Includes metadata associated with dependency artifacts and metadata that is not possible or not practical to assosiate with a specific artifact, like, for example, p2 repository category installable units.The result does not include metadata associated with 'this' project.
- Returns:
- Set<IInstallableUnit> or null
-
toDebugString
For debug purposes only, do not use. TODO move this out of here
-