o Added method to easily check for result of resolution

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@814027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-09-11 21:02:34 +00:00
parent d8951da832
commit 044835055b
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ public ArtifactResolutionResult setUnresolvedArtifacts( final List<Artifact> unr
return this;
}
public boolean isSuccess()
{
return !( hasMissingArtifacts() || hasExceptions() );
}
// ------------------------------------------------------------------------
// Exceptions
// ------------------------------------------------------------------------