public class DefaultTargetPlatform extends Object implements TargetPlatform
Modifier and Type | Field and Description |
---|---|
protected Map<ArtifactKey,ArtifactDescriptor> |
artifacts |
protected Map<File,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.
|
ANY_QUALIFIER
Constructor and Description |
---|
DefaultTargetPlatform() |
Modifier and Type | Method and Description |
---|---|
void |
addArtifact(ArtifactDescriptor artifact) |
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 |
addSite(File location)
Deprecated.
get rid of me, I am not used for anything
|
void |
dump() |
ArtifactDescriptor |
getArtifact(ArtifactKey key) |
ArtifactDescriptor |
getArtifact(File 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.
|
ReactorProject |
getMavenProject(File location) |
Set<?> |
getNonReactorUnits()
Set of IInstallableUnits in the target platform that come from outside the local reactor, or
null if the the target platform was not resolved from a p2 repository. |
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 Map<ArtifactKey,ArtifactDescriptor> artifacts
protected final Map<File,ArtifactDescriptor> locations
public List<ArtifactDescriptor> getArtifacts(String type)
TargetPlatform
getArtifacts
in interface TargetPlatform
public List<ArtifactDescriptor> getArtifacts()
TargetPlatform
getArtifacts
in interface TargetPlatform
public void addArtifactFile(ArtifactKey key, File location, Set<Object> installableUnits)
public void addArtifact(ArtifactDescriptor artifact)
protected ArtifactKey normalizeKey(ArtifactKey key)
public void addSite(File location)
public void dump()
public boolean isEmpty()
public ArtifactDescriptor getArtifact(String type, String id, String version)
TargetPlatform
This method uses the following version selection rules
getArtifact
in interface TargetPlatform
public void addReactorArtifact(ArtifactKey key, ReactorProject project, String classifier, Set<Object> installableUnits)
public ReactorProject getMavenProject(File location)
getMavenProject
in interface TargetPlatform
public ArtifactDescriptor getArtifact(File location)
getArtifact
in interface TargetPlatform
public ArtifactDescriptor getArtifact(ArtifactKey key)
getArtifact
in interface TargetPlatform
public Set<?> getNonReactorUnits()
TargetPlatform
null
if the the target platform was not resolved from a p2 repository.getNonReactorUnits
in interface TargetPlatform
public void addNonReactorUnits(Set<?> installableUnits)
public void toDebugString(StringBuilder sb, String linePrefix)
TargetPlatform
toDebugString
in interface TargetPlatform
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.