maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r756908 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java
Date Sat, 21 Mar 2009 10:17:15 GMT
Author: olamy
Date: Sat Mar 21 10:17:15 2009
New Revision: 756908

URL: http://svn.apache.org/viewvc?rev=756908&view=rev
Log:
format no code changed

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java?rev=756908&r1=756907&r2=756908&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-perforce/src/main/java/org/apache/maven/scm/provider/perforce/command/login/PerforceLoginCommand.java
Sat Mar 21 10:17:15 2009
@@ -20,6 +20,7 @@
  */
 
 import java.io.File;
+import java.io.StringBufferInputStream;
 
 import org.apache.maven.scm.CommandParameters;
 import org.apache.maven.scm.ScmException;
@@ -35,8 +36,6 @@
 import org.codehaus.plexus.util.cli.CommandLineUtils;
 import org.codehaus.plexus.util.cli.Commandline;
 
-import java.io.StringBufferInputStream;
-
 /**
  * @author Mike Perham
  * @version $Id$
@@ -64,9 +63,11 @@
                 }
                 isSuccess = true;
             }
-            else {
+            else
+            {
                 CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer();
-                int exitCode = CommandLineUtils.executeCommandLine( cl, new StringBufferInputStream(password),
consumer, err );
+                int exitCode = CommandLineUtils.executeCommandLine( cl, new StringBufferInputStream(
password ),
+                                                                    consumer, err );
                 isSuccess = consumer.isSuccess();
 
                 if ( isSuccess )
@@ -87,7 +88,7 @@
         }
 
         return new LoginScmResult( cl.toString(), isSuccess ? "Login successful" : "Login
failed",
-                        consumer.getOutput(), isSuccess );
+                                   consumer.getOutput(), isSuccess );
     }
 
     public static Commandline createCommandLine( PerforceScmProviderRepository repo, File
workingDir )



Mime
View raw message