maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r543770 - /maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java
Date Sat, 02 Jun 2007 18:01:29 GMT
Author: jvanzyl
Date: Sat Jun  2 11:01:28 2007
New Revision: 543770

URL: http://svn.apache.org/viewvc?view=rev&rev=543770
Log:
MNG-2884 Get a list of the missing artifacts from the exception.


Modified:
    maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java

Modified: maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java?view=diff&rev=543770&r1=543769&r2=543770
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/MultipleArtifactsNotFoundException.java
Sat Jun  2 11:01:28 2007
@@ -27,12 +27,19 @@
 public class MultipleArtifactsNotFoundException
     extends ArtifactResolutionException
 {
-
+    private final List missingArtifacts;
+    
     public MultipleArtifactsNotFoundException( Artifact originatingArtifact, List artifacts,
List remoteRepositories )
     {
         super( constructMessage( artifacts ), originatingArtifact, remoteRepositories );
+        this.missingArtifacts = artifacts;
     }
-
+    
+    public List getMissingArtifacts()
+    {
+        return missingArtifacts;
+    }
+    
     private static String constructMessage( List artifacts )
     {
         StringBuffer buffer = new StringBuffer( "Missing:\n" );



Mime
View raw message