maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r926395 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
Date Mon, 22 Mar 2010 23:22:24 GMT
Author: brett
Date: Mon Mar 22 23:22:23 2010
New Revision: 926395

URL: http://svn.apache.org/viewvc?rev=926395&view=rev
Log:
[MPH-76] use a fixed number of asterisks to mask passwords in effective-settings

Modified:
    maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java?rev=926395&r1=926394&r2=926395&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
(original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EffectiveSettingsMojo.java
Mon Mar 22 23:22:23 2010
@@ -149,7 +149,7 @@ public class EffectiveSettingsMojo
 
             if ( StringUtils.isNotEmpty( proxy.getPassword() ) )
             {
-                proxy.setPassword( StringUtils.repeat( "*", proxy.getPassword().length()
) );
+                proxy.setPassword( "***" );
             }
         }
 
@@ -159,12 +159,12 @@ public class EffectiveSettingsMojo
             // Password
             if ( StringUtils.isNotEmpty( server.getPassword() ) )
             {
-                server.setPassword( StringUtils.repeat( "*", server.getPassword().length()
) );
+                server.setPassword( "***" );
             }
             // Passphrase
             if ( StringUtils.isNotEmpty( server.getPassphrase() ) )
             {
-                server.setPassphrase( StringUtils.repeat( "*", server.getPassphrase().length()
) );
+                server.setPassphrase( "***" );
             }
         }
     }



Mime
View raw message