From 044835055b2773d622f3867a7b4e00f413d5f15b Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 11 Sep 2009 21:02:34 +0000 Subject: [PATCH] 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 --- .../maven/artifact/resolver/ArtifactResolutionResult.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java index 758bdb9338..1e8787de6b 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java @@ -141,6 +141,11 @@ public class ArtifactResolutionResult return this; } + public boolean isSuccess() + { + return !( hasMissingArtifacts() || hasExceptions() ); + } + // ------------------------------------------------------------------------ // Exceptions // ------------------------------------------------------------------------