jvanzyl     2003/10/27 05:31:05

  Modified:    src/java/org/apache/maven/verifier DependencyVerifier.java
  Log:
  o fix for problem reported by Edmund Urbani where https urls don't get processed 
properly.
  
  Revision  Changes    Path
  1.33      +10 -2     maven/src/java/org/apache/maven/verifier/DependencyVerifier.java
  
  Index: DependencyVerifier.java
  ===================================================================
  RCS file: 
/home/cvs/maven/src/java/org/apache/maven/verifier/DependencyVerifier.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- DependencyVerifier.java   4 Sep 2003 15:19:25 -0000       1.32
  +++ DependencyVerifier.java   27 Oct 2003 13:31:05 -0000      1.33
  @@ -337,7 +337,15 @@
               // used here. Those are the "" parameters you see below.
               String url = remoteRepo + "/" + artifact.getUrlPath();
               url = StringUtils.replace( url, "//", "/" );
  -            url = StringUtils.replace( url, "http:/", "http://"; );
  +
  +            if ( url.indexOf( "https" ) > 0 )
  +            {
  +                url = StringUtils.replace( url, "https:/", "https://"; );
  +            }
  +            else
  +            {
  +                url = StringUtils.replace( url, "http:/", "http://"; );
  +            }
   
               // Attempt to retrieve the artifact and set the checksum if retrieval
               // of the checksum file was successful.
  
  
  

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

Reply via email to