continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1662996 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java
Date Sat, 28 Feb 2015 20:16:39 GMT
Author: batkinson
Date: Sat Feb 28 20:16:39 2015
New Revision: 1662996

URL: http://svn.apache.org/r1662996
Log:
[CONTINUUM-2578] Improved logging when settings are used to fetch maven metadata.

Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java?rev=1662996&r1=1662995&r2=1662996&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataAction.java
Sat Feb 28 20:16:39 2015
@@ -119,21 +119,24 @@ public class CreateProjectsFromMetadataA
             else
             {
                 url = new URL( curl );
+                String host = url.getHost();
                 String username = null;
                 String password = null;
 
                 try
                 {
+                    getLogger().info( "consulting settings for credentials to " + host );
                     Settings settings = getSettings();
-
-                    getLogger().info( "checking for settings auth setup" );
-                    if ( settings != null && settings.getServer( url.getHost() )
!= null )
+                    Server server = settings.getServer( url.getHost() );
+                    if ( server != null )
                     {
-                        getLogger().info( "found setting based auth setup, using" );
-                        Server server = settings.getServer( url.getHost() );
-
                         username = server.getUsername();
                         password = server.getPassword();
+                        getLogger().info( "credentials found in settings, will fetch metadata
as " + username );
+                    }
+                    else
+                    {
+                        getLogger().info( "credentials not found for server " + host );
                     }
                 }
                 catch ( SettingsConfigurationException se )



Mime
View raw message