maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: maven-wagon/wagon-providers/http/src/main/java/org/apache/maven/wagon/providers/http HttpWagon.java
Date Sat, 24 Apr 2004 16:24:41 GMT
jvanzyl     2004/04/24 09:24:41

  Modified:    wagon-providers/http/src/main/java/org/apache/maven/wagon/providers/http
                        HttpWagon.java
  Log:
  o formatting
  o after doing a clean checkout the http wagon test seems to fail again, so
    there seems to be problems with httpclient in multithreaded environments ...
  
  Revision  Changes    Path
  1.3       +11 -13    maven-wagon/wagon-providers/http/src/main/java/org/apache/maven/wagon/providers/http/HttpWagon.java
  
  Index: HttpWagon.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-providers/http/src/main/java/org/apache/maven/wagon/providers/http/HttpWagon.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpWagon.java	24 Apr 2004 15:53:09 -0000	1.2
  +++ HttpWagon.java	24 Apr 2004 16:24:41 -0000	1.3
  @@ -19,11 +19,10 @@
   import org.apache.commons.httpclient.Credentials;
   import org.apache.commons.httpclient.HostConfiguration;
   import org.apache.commons.httpclient.HttpClient;
  -import org.apache.commons.httpclient.HttpMethod;
   import org.apache.commons.httpclient.HttpRecoverableException;
   import org.apache.commons.httpclient.HttpStatus;
  -import org.apache.commons.httpclient.UsernamePasswordCredentials;
   import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
  +import org.apache.commons.httpclient.UsernamePasswordCredentials;
   import org.apache.commons.httpclient.methods.GetMethod;
   import org.apache.commons.httpclient.methods.PutMethod;
   import org.apache.commons.lang.StringUtils;
  @@ -73,33 +72,32 @@
               password = authInfo.getPassword();
           }
   
  -        final String host = getRepository().getHost();
  +         String host = getRepository().getHost();
   
           if ( StringUtils.isNotEmpty( username ) && StringUtils.isNotEmpty( password
) )
           {
  -            final Credentials creds =
  -                new UsernamePasswordCredentials( username, password );
  +             Credentials creds = new UsernamePasswordCredentials( username, password );
   
               client.getState().setCredentials( null, host, creds );
           }
   
  -        final HostConfiguration hc = new HostConfiguration();
  +         HostConfiguration hc = new HostConfiguration();
   
  -        final ProxyInfo proxyInfo = getRepository().getProxyInfo();
  +         ProxyInfo proxyInfo = getRepository().getProxyInfo();
   
           if ( proxyInfo != null )
           {
  -            final String proxyUsername = proxyInfo.getUserName();
  +             String proxyUsername = proxyInfo.getUserName();
   
  -            final String proxyPassword = proxyInfo.getPassword();
  +             String proxyPassword = proxyInfo.getPassword();
   
  -            final String proxyHost = proxyInfo.getHost();
  +             String proxyHost = proxyInfo.getHost();
   
               if ( StringUtils.isNotEmpty( proxyUsername )
                   && StringUtils.isNotEmpty( proxyPassword )
                   && StringUtils.isNotEmpty( proxyHost ) )
               {
  -                final Credentials creds = new UsernamePasswordCredentials( username, password
);
  +                 Credentials creds = new UsernamePasswordCredentials( username, password
);
   
                   client.getState().setProxyCredentials( null, proxyHost, creds );
               }
  @@ -255,7 +253,7 @@
           return numberOfAttempts;
       }
   
  -    public void setNumberOfAttempts( final int numberOfAttempts )
  +    public void setNumberOfAttempts(  int numberOfAttempts )
       {
           this.numberOfAttempts = numberOfAttempts;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org


Mime
View raw message