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)
TargetPlatformgetArtifacts in interface TargetPlatformpublic List<ArtifactDescriptor> getArtifacts()
TargetPlatformgetArtifacts in interface TargetPlatformpublic 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)
TargetPlatformThis method uses the following version selection rules
getArtifact in interface TargetPlatformpublic void addReactorArtifact(ArtifactKey key, ReactorProject project, String classifier, Set<Object> installableUnits)
public ReactorProject getMavenProject(File location)
getMavenProject in interface TargetPlatformpublic ArtifactDescriptor getArtifact(File location)
getArtifact in interface TargetPlatformpublic ArtifactDescriptor getArtifact(ArtifactKey key)
getArtifact in interface TargetPlatformpublic Set<?> getNonReactorUnits()
TargetPlatformnull if the the target platform was not resolved from a p2 repository.getNonReactorUnits in interface TargetPlatformpublic void addNonReactorUnits(Set<?> installableUnits)
public void toDebugString(StringBuilder sb, String linePrefix)
TargetPlatformtoDebugString in interface TargetPlatformCopyright © 2008-2012 Eclipse Foundation. All Rights Reserved.