maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r681255 - /maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Date Thu, 31 Jul 2008 02:09:21 GMT
Author: jdcasey
Date: Wed Jul 30 19:09:21 2008
New Revision: 681255

URL: http://svn.apache.org/viewvc?rev=681255&view=rev
Log:
Adding a few minor debug messages to make it easier to see when mirrors and proxies are in
use.

Modified:
    maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java

Modified: maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java?rev=681255&r1=681254&r2=681255&view=diff
==============================================================================
--- maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
(original)
+++ maven/components/branches/maven-2.0.10-RC/maven-artifact-manager/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Wed Jul 30 19:09:21 2008
@@ -617,6 +617,8 @@
                 // TODO: this should be illegal in settings.xml
                 id = repository.getId();
             }
+            
+            getLogger().debug( "Using mirror: " + mirror.getUrl() + " (id: " + id + ")" );
 
             repository = repositoryFactory.createArtifactRepository( id, mirror.getUrl(),
                                                                      repository.getLayout(),
repository.getSnapshots(),
@@ -739,7 +741,14 @@
 
     public ProxyInfo getProxy( String protocol )
     {
-        return (ProxyInfo) proxies.get( protocol );
+        ProxyInfo info = (ProxyInfo) proxies.get( protocol );
+        
+        if ( info != null )
+        {
+            getLogger().debug( "Using Proxy: " + info.getHost() );
+        }
+        
+        return info;
     }
 
     public AuthenticationInfo getAuthenticationInfo( String id )



Mime
View raw message