dion        2003/02/09 15:37:04

  Modified:    src/java/org/apache/maven/verifier DependencyVerifier.java
  Log:
  
  Made file not found in a remote repo an ignorable exception.
  
  Revision  Changes    Path
  1.19      +8 -1      
jakarta-turbine-maven/src/java/org/apache/maven/verifier/DependencyVerifier.java
  
  Index: DependencyVerifier.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/verifier/DependencyVerifier.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DependencyVerifier.java   9 Feb 2003 14:43:27 -0000       1.18
  +++ DependencyVerifier.java   9 Feb 2003 23:37:04 -0000       1.19
  @@ -63,6 +63,7 @@
   import org.apache.maven.util.HttpUtils;
   
   import java.io.File;
  +import java.io.FileNotFoundException;
   import java.util.ArrayList;
   import java.util.Iterator;
   import java.util.List;
  @@ -321,6 +322,12 @@
                   // Artifact was found, continue checking additional remote repos 
(if any)
                   // in case there is a newer version (i.e. snapshots) in another 
repo  
                   artifactFound = true;                                   
  +            }
  +            catch (FileNotFoundException e)
  +            {
  +                // Multiple repositories may exist, and if the file is not found
  +                // in just one of them, it's no problem.
  +                // if it's not found at all, artifactFound will be false.
               }
               catch ( Exception e )
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to