continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r378526 - /maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Fri, 17 Feb 2006 14:28:10 GMT
Author: evenisse
Date: Fri Feb 17 06:28:09 2006
New Revision: 378526

URL: http://svn.apache.org/viewcvs?rev=378526&view=rev
Log:
Fix username/password setting

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=378526&r1=378525&r2=378526&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Fri Feb 17 06:28:09 2006
@@ -272,13 +272,13 @@
     {
         ScmRepository repository = scmManager.makeScmRepository( project.getScmUrl() );
 
-        if ( project.getScmUsername() != null )
+        repository.getProviderRepository().setPersistCheckout( true );
+
+        if ( !StringUtils.isEmpty( project.getScmUsername() ) )
         {
             repository.getProviderRepository().setUser( project.getScmUsername() );
 
-            repository.getProviderRepository().setPersistCheckout( true );
-
-            if ( project.getScmPassword() != null )
+            if ( !StringUtils.isEmpty( project.getScmPassword() ) )
             {
                 repository.getProviderRepository().setPassword( project.getScmPassword()
);
             }



Mime
View raw message