protected LoginScmResult login( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return new LoginScmResult( null, null, null, true ); }
private void login( ScmRepository repository, ScmFileSet fileSet ) throws ScmException { LoginScmResult result = login( repository.getProviderRepository(), fileSet, new CommandParameters() ); if ( !result.isSuccess() ) { throw new ScmException( "Can't login.\n" + result.getCommandOutput() ); } }
private void login( ScmRepository repository, ScmFileSet fileSet ) throws ScmException { LoginScmResult result = login( repository.getProviderRepository(), fileSet, new CommandParameters() ); if ( !result.isSuccess() ) { throw new ScmException( "Can't login.\n" + result.getCommandOutput() ); } }
/** * @see org.apache.maven.scm.command.login.AbstractLoginCommand#executeLoginCommand * (org.apache.maven.scm.provider.ScmProviderRepository, org.apache.maven.scm.ScmFileSet, * org.apache.maven.scm.CommandParameters) */ public LoginScmResult executeLoginCommand( ScmProviderRepository repo, ScmFileSet files, CommandParameters params ) throws ScmException { // bad connection should never get here return new LoginScmResult( command, "", "Login successful", true ); }
protected LoginScmResult login( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return new LoginScmResult( null, null, null, true ); }
/** {@inheritDoc} */ public LoginScmResult executeLoginCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { CvsScmProviderRepository repo = (CvsScmProviderRepository) repository; if ( !"pserver".equals( repo.getTransport() ) ) { return new LoginScmResult( null, "The cvs login ignored for " + repo.getTransport() + ".", "", true ); } else if ( isCvsNT() ) { //We don't continue becauseCVSNT doesn't use .cvspass return new LoginScmResult( null, "The cvs login ignored for CVSNT.", "", true ); } CvsPass passGenerator = new CvsPass( getLogger() ); passGenerator.setCvsroot( repo.getCvsRootForCvsPass() ); passGenerator.setPassword( repo.getPassword() ); try { passGenerator.execute(); } catch ( IOException e ) { throw new ScmException( "Error while executing cvs login command.", e ); } return new LoginScmResult( null, "The cvs command succeed.", "", true ); }
/** {@inheritDoc} */ public LoginScmResult executeLoginCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { CvsScmProviderRepository repo = (CvsScmProviderRepository) repository; if ( !"pserver".equals( repo.getTransport() ) ) { return new LoginScmResult( null, "The cvs login ignored for " + repo.getTransport() + ".", "", true ); } else if ( isCvsNT() ) { //We don't continue becauseCVSNT doesn't use .cvspass return new LoginScmResult( null, "The cvs login ignored for CVSNT.", "", true ); } CvsPass passGenerator = new CvsPass( getLogger() ); passGenerator.setCvsroot( repo.getCvsRootForCvsPass() ); passGenerator.setPassword( repo.getPassword() ); try { passGenerator.execute(); } catch ( IOException e ) { throw new ScmException( "Error while executing cvs login command.", e ); } return new LoginScmResult( null, "The cvs command succeed.", "", true ); }
return new LoginScmResult( cl.toString(), isSuccess ? "Login successful" : "Login failed", consumer.getOutput(), isSuccess );
return new LoginScmResult( cl.toString(), isSuccess ? "Login successful" : "Login failed", consumer.getOutput(), isSuccess );
int exitCode = res.getExitCode(); boolean success = ( exitCode == 0 ? true : false ); result = new LoginScmResult( res.getCommandString(), "", "Exit Code: " + exitCode, success ); getLogger().error( "MKS API Exception: " + eh.getMessage() ); getLogger().info( eh.getCommand() + " exited with return code " + eh.getExitCode() ); result = new LoginScmResult( eh.getCommand(), eh.getMessage(), "Exit Code: " + eh.getExitCode(), false );
return new LoginScmResult( accurev.getCommandLines(), providerMessage, accurev.getErrorOutput(), result );
int exitCode = res.getExitCode(); boolean success = ( exitCode == 0 ? true : false ); result = new LoginScmResult( res.getCommandString(), "", "Exit Code: " + exitCode, success ); getLogger().error( "MKS API Exception: " + eh.getMessage() ); getLogger().info( eh.getCommand() + " exited with return code " + eh.getExitCode() ); result = new LoginScmResult( eh.getCommand(), eh.getMessage(), "Exit Code: " + eh.getExitCode(), false );
return new LoginScmResult( accurev.getCommandLines(), providerMessage, accurev.getErrorOutput(), result );