public class ArtifactCollection extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<ArtifactKey,ArtifactDescriptor> |
artifacts |
protected Map<File,Map<String,ArtifactDescriptor>> |
locations |
Constructor and Description |
---|
ArtifactCollection() |
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 |
addReactorArtifact(ArtifactKey key,
ReactorProject project,
String classifier,
Set<Object> installableUnits) |
void |
dump() |
ArtifactDescriptor |
getArtifact(ArtifactKey key) |
Map<String,ArtifactDescriptor> |
getArtifact(File location) |
ArtifactDescriptor |
getArtifact(String type,
String id,
String version) |
List<ArtifactDescriptor> |
getArtifacts() |
List<ArtifactDescriptor> |
getArtifacts(String type) |
ReactorProject |
getMavenProject(File location) |
boolean |
isEmpty() |
protected ArtifactDescriptor |
normalize(ArtifactDescriptor artifact) |
protected ArtifactKey |
normalize(ArtifactKey key) |
protected ArtifactKey |
normalizePluginType(ArtifactKey key) |
void |
removeAll(String type,
String id) |
void |
toDebugString(StringBuilder sb,
String linePrefix) |
protected final Map<ArtifactKey,ArtifactDescriptor> artifacts
protected final Map<File,Map<String,ArtifactDescriptor>> locations
public List<ArtifactDescriptor> getArtifacts(String type)
public List<ArtifactDescriptor> getArtifacts()
public void addArtifactFile(ArtifactKey key, File location, Set<Object> installableUnits)
public void addArtifact(ArtifactDescriptor artifact)
protected void addArtifact(ArtifactDescriptor artifact, boolean merge)
protected ArtifactDescriptor normalize(ArtifactDescriptor artifact)
protected ArtifactKey normalize(ArtifactKey key)
protected ArtifactKey normalizePluginType(ArtifactKey key)
public void dump()
public boolean isEmpty()
public ArtifactDescriptor getArtifact(String type, String id, String version)
public void addReactorArtifact(ArtifactKey key, ReactorProject project, String classifier, Set<Object> installableUnits)
public ReactorProject getMavenProject(File location)
public Map<String,ArtifactDescriptor> getArtifact(File location)
public ArtifactDescriptor getArtifact(ArtifactKey key)
public void toDebugString(StringBuilder sb, String linePrefix)
Copyright © 2008-2016 Eclipse Foundation. All Rights Reserved.