jvanzyl     2003/11/24 12:32:37

  Modified:    src/bootstrap/org/apache/maven BootstrapTask.java
  Log:
  o don't download the file if it exists. something is wrong with timestamps again
    as it's trying to download the file even though i have it locally ...
  
  Revision  Changes    Path
  1.20      +7 -0      maven/src/bootstrap/org/apache/maven/BootstrapTask.java
  
  Index: BootstrapTask.java
  ===================================================================
  RCS file: /home/cvs/maven/src/bootstrap/org/apache/maven/BootstrapTask.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- BootstrapTask.java        24 Nov 2003 20:16:24 -0000      1.19
  +++ BootstrapTask.java        24 Nov 2003 20:32:37 -0000      1.20
  @@ -430,6 +430,13 @@
                       directory.mkdirs();
                   }
   
  +                if ( destinationFile.exists() )
  +                {
  +                    log( "Destination file " + destinationFile + " exists. Not 
dowloading." );
  +
  +                    continue;
  +                }
  +
                   log( "Downloading dependency: " + baseUrl + file );
   
                   int numRetries = 3;
  
  
  

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

Reply via email to