public interface DependencyArtifacts
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()
Modifier and Type | Field and Description |
---|---|
static String |
ANY_QUALIFIER
Conventional qualifier used to denote "ANY QUALIFIER" in feature.xml and .product files.
|
Modifier and Type | Method and Description |
---|---|
ArtifactDescriptor |
getArtifact(ArtifactKey key) |
Map<String,ArtifactDescriptor> |
getArtifact(File location)
Returns map of artifact descriptors at the given location.
|
ArtifactDescriptor |
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.
|
List<ArtifactDescriptor> |
getArtifacts()
Returns all artifacts.
|
List<ArtifactDescriptor> |
getArtifacts(String type)
Returns all artifacts of the given type.
|
Collection<?> |
getInstallableUnits()
Collection of dependency metadata (p2 installable units).
|
ReactorProject |
getMavenProject(File location) |
Set<?> |
getNonReactorUnits()
Set of IInstallableUnits in the resolved project dependencies that come from outside the
local reactor, or
null if the the project dependencies were not resolved from a
p2 target platform. |
void |
toDebugString(StringBuilder sb,
String linePrefix)
For debug purposes only, do not use.
|
static final String ANY_QUALIFIER
List<ArtifactDescriptor> getArtifacts()
List<ArtifactDescriptor> getArtifacts(String type)
ArtifactDescriptor getArtifact(String type, String id, String version)
This method uses the following version selection rules
ReactorProject getMavenProject(File location)
Map<String,ArtifactDescriptor> getArtifact(File location)
null
.ArtifactDescriptor getArtifact(ArtifactKey key)
Set<?> getNonReactorUnits()
null
if the the project dependencies were not resolved from a
p2 target platform.Collection<?> getInstallableUnits()
The result does not include metadata associated with 'this' project.
void toDebugString(StringBuilder sb, String linePrefix)
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.