mirror of https://github.com/apache/maven.git
added tree-based resolution result to request/response
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@760573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5233029d4e
commit
f36831147b
|
@ -65,6 +65,18 @@ public class MetadataResolutionRequest
|
|||
|
||||
private boolean resolveRoot = true;
|
||||
|
||||
/** result type - flat list */
|
||||
private boolean asList = true;
|
||||
|
||||
/** result type - dirty tree */
|
||||
private boolean asDirtyTree = false;
|
||||
|
||||
/** result type - resolved tree */
|
||||
private boolean asResolvedTree = false;
|
||||
|
||||
/** result type - graph */
|
||||
private boolean asGraph = false;
|
||||
|
||||
public MetadataResolutionRequest()
|
||||
{
|
||||
}
|
||||
|
@ -207,4 +219,48 @@ public class MetadataResolutionRequest
|
|||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public boolean isAsList()
|
||||
{
|
||||
return asList;
|
||||
}
|
||||
|
||||
public MetadataResolutionRequest setAsList( boolean asList )
|
||||
{
|
||||
this.asList = asList;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isAsDirtyTree()
|
||||
{
|
||||
return asDirtyTree;
|
||||
}
|
||||
|
||||
public MetadataResolutionRequest setAsDirtyTree( boolean asDirtyTree )
|
||||
{
|
||||
this.asDirtyTree = asDirtyTree;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isAsResolvedTree()
|
||||
{
|
||||
return asResolvedTree;
|
||||
}
|
||||
|
||||
public MetadataResolutionRequest setAsResolvedTree( boolean asResolvedTree )
|
||||
{
|
||||
this.asResolvedTree = asResolvedTree;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isAsGraph()
|
||||
{
|
||||
return asGraph;
|
||||
}
|
||||
|
||||
public MetadataResolutionRequest setAsGraph( boolean asGraph )
|
||||
{
|
||||
this.asGraph = asGraph;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,8 @@ public class MetadataResolutionResult
|
|||
|
||||
private Set<Artifact> artifacts;
|
||||
|
||||
private MetadataTreeNode resolvedTree;
|
||||
|
||||
public Artifact getOriginatingArtifact()
|
||||
{
|
||||
return originatingArtifact;
|
||||
|
@ -340,4 +342,15 @@ public class MetadataResolutionResult
|
|||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public MetadataTreeNode getResolvedTree()
|
||||
{
|
||||
return resolvedTree;
|
||||
}
|
||||
|
||||
public void setResolvedTree( MetadataTreeNode resolvedTree )
|
||||
{
|
||||
this.resolvedTree = resolvedTree;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue