continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r752948 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java
Date Thu, 12 Mar 2009 17:49:19 GMT
Author: evenisse
Date: Thu Mar 12 17:49:19 2009
New Revision: 752948

URL: http://svn.apache.org/viewvc?rev=752948&view=rev
Log:
[CONTINUUM-1909] Fix checkout with login/password

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

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java?rev=752948&r1=752947&r2=752948&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/CheckoutProjectContinuumAction.java
Thu Mar 12 17:49:19 2009
@@ -96,14 +96,15 @@
 
         try
         {
-            String scmUserName = getString( context, KEY_SCM_USERNAME, "" );
-            String scmPassword = getString( context, KEY_SCM_PASSWORD, "" );
+            String scmUserName = getString( context, KEY_SCM_USERNAME, project.getScmUsername()
);
+            String scmPassword = getString( context, KEY_SCM_PASSWORD, project.getScmPassword()
);
             ContinuumScmConfiguration config =
                 createScmConfiguration( project, workingDirectory, scmUserName, scmPassword
);
 
             String tag = config.getTag();
-            getLogger().info( "Checking out project: '" + project.getName() + "', id: '"
+ project.getId() + "' " +
-                "to '" + workingDirectory + "'" + ( tag != null ? " with branch/tag " + tag
+ "." : "." ) );
+            getLogger().info(
+                "Checking out project: '" + project.getName() + "', id: '" + project.getId()
+ "' " + "to '" +
+                    workingDirectory + "'" + ( tag != null ? " with branch/tag " + tag +
"." : "." ) );
 
             CheckOutScmResult checkoutResult = scm.checkout( config );
             if ( StringUtils.isNotEmpty( checkoutResult.getRelativePathProjectDirectory()
) )
@@ -256,7 +257,7 @@
         {
             for ( Iterator<String> i = messages.iterator(); i.hasNext(); )
             {
-                message.append( (String) i.next() );
+                message.append( i.next() );
 
                 if ( i.hasNext() )
                 {



Mime
View raw message