public class DefaultTargetPlatform extends Object implements DependencyArtifacts
| Modifier and Type | Field and Description |
|---|---|
protected Map<ArtifactKey,ArtifactDescriptor> |
artifacts |
protected Map<File,Map<String,ArtifactDescriptor>> |
locations |
protected Set<Object> |
nonReactorUnits
Set of installable unit in the target platform of the module that do not come from the local
reactor.
|
protected ReactorProject |
project
'this' project, i.e.
|
ANY_QUALIFIER| Constructor and Description |
|---|
DefaultTargetPlatform() |
DefaultTargetPlatform(ReactorProject project) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArtifact(ArtifactDescriptor artifact) |
protected void |
addArtifact(ArtifactDescriptor artifact,
boolean merge) |
void |
addArtifactFile(ArtifactKey key,
File location,
Set<Object> installableUnits) |
void |
addNonReactorUnits(Set<?> installableUnits) |
void |
addReactorArtifact(ArtifactKey key,
ReactorProject project,
String classifier,
Set<Object> installableUnits) |
void |
dump() |
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.
|
Set<?> |
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. |
boolean |
isEmpty() |
protected ArtifactKey |
normalizeKey(ArtifactKey key) |
void |
removeAll(String type,
String id) |
void |
toDebugString(StringBuilder sb,
String linePrefix)
For debug purposes only, do not use.
|
protected final ReactorProject project
protected final Map<ArtifactKey,ArtifactDescriptor> artifacts
protected final Map<File,Map<String,ArtifactDescriptor>> locations
public DefaultTargetPlatform()
public DefaultTargetPlatform(ReactorProject project)
public List<ArtifactDescriptor> getArtifacts(String type)
DependencyArtifactsgetArtifacts in interface DependencyArtifactspublic List<ArtifactDescriptor> getArtifacts()
DependencyArtifactsgetArtifacts in interface DependencyArtifactspublic void addArtifactFile(ArtifactKey key, File location, Set<Object> installableUnits)
public void addArtifact(ArtifactDescriptor artifact)
protected void addArtifact(ArtifactDescriptor artifact, boolean merge)
protected ArtifactKey normalizeKey(ArtifactKey key)
public void dump()
public boolean isEmpty()
public ArtifactDescriptor getArtifact(String type, String id, String version)
DependencyArtifactsThis method uses the following version selection rules
getArtifact in interface DependencyArtifactspublic void addReactorArtifact(ArtifactKey key, ReactorProject project, String classifier, Set<Object> installableUnits)
public ReactorProject getMavenProject(File location)
getMavenProject in interface DependencyArtifactspublic Map<String,ArtifactDescriptor> getArtifact(File location)
DependencyArtifactsnull.getArtifact in interface DependencyArtifactspublic ArtifactDescriptor getArtifact(ArtifactKey key)
getArtifact in interface DependencyArtifactspublic Set<?> getNonReactorUnits()
DependencyArtifactsnull if the the project dependencies were not resolved from a
p2 target platform.getNonReactorUnits in interface DependencyArtifactspublic Set<?> getInstallableUnits()
DependencyArtifactsThe result does not include metadata associated with 'this' project.
getInstallableUnits in interface DependencyArtifactspublic void addNonReactorUnits(Set<?> installableUnits)
public void toDebugString(StringBuilder sb, String linePrefix)
DependencyArtifactstoDebugString in interface DependencyArtifactsCopyright © 2008-2012 Eclipse Foundation. All Rights Reserved.