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)
DependencyArtifacts
getArtifacts
in interface DependencyArtifacts
public List<ArtifactDescriptor> getArtifacts()
DependencyArtifacts
getArtifacts
in interface DependencyArtifacts
public 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)
DependencyArtifacts
This method uses the following version selection rules
getArtifact
in interface DependencyArtifacts
public void addReactorArtifact(ArtifactKey key, ReactorProject project, String classifier, Set<Object> installableUnits)
public ReactorProject getMavenProject(File location)
getMavenProject
in interface DependencyArtifacts
public Map<String,ArtifactDescriptor> getArtifact(File location)
DependencyArtifacts
null
.getArtifact
in interface DependencyArtifacts
public ArtifactDescriptor getArtifact(ArtifactKey key)
getArtifact
in interface DependencyArtifacts
public Set<?> getNonReactorUnits()
DependencyArtifacts
null
if the the project dependencies were not resolved from a
p2 target platform.getNonReactorUnits
in interface DependencyArtifacts
public Set<?> getInstallableUnits()
DependencyArtifacts
The result does not include metadata associated with 'this' project.
getInstallableUnits
in interface DependencyArtifacts
public void addNonReactorUnits(Set<?> installableUnits)
public void toDebugString(StringBuilder sb, String linePrefix)
DependencyArtifacts
toDebugString
in interface DependencyArtifacts
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.