/** * @param datePattern the date pattern used in changelog output returned by scm tool */ public void setDatePattern( String datePattern ) throws ScmException { parameters.setString( CommandParameter.CHANGELOG_DATE_PATTERN, datePattern ); }
/** * @param datePattern the date pattern used in changelog output returned by scm tool */ public void setDatePattern( String datePattern ) throws ScmException { parameters.setString( CommandParameter.CHANGELOG_DATE_PATTERN, datePattern ); }
public void setFilename( String filename ) throws ScmException { this.getCommandParameters().setString( CommandParameter.FILE, filename ); }
/** * {@inheritDoc} */ public BlameScmResult executeBlameCommand( ScmProviderRepository repo, ScmFileSet workingDirectory, String filename ) throws ScmException { CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.FILE, filename ); commandParameters.setString( CommandParameter.IGNORE_WHITESPACE, Boolean.FALSE.toString() ); return (BlameScmResult) execute( repo, workingDirectory, commandParameters ); }
/** * {@inheritDoc} */ public BlameScmResult executeBlameCommand( ScmProviderRepository repo, ScmFileSet workingDirectory, String filename ) throws ScmException { CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.FILE, filename ); commandParameters.setString( CommandParameter.IGNORE_WHITESPACE, Boolean.FALSE.toString() ); return (BlameScmResult) execute( repo, workingDirectory, commandParameters ); }
public void setFilename( String filename ) throws ScmException { this.getCommandParameters().setString( CommandParameter.FILE, filename ); }
/** * {@inheritDoc} */ protected ScmResult executeAddCommand( ScmProviderRepository repository, ScmFileSet fileSet, String message, boolean binary ) throws ScmException { CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.MESSAGE, message ); return executeCommand( repository, fileSet, commandParameters ); } }
private UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String datePattern, boolean runChangelog ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setScmVersion( CommandParameter.SCM_VERSION, scmVersion ); parameters.setString( CommandParameter.CHANGELOG_DATE_PATTERN, datePattern ); parameters.setString( CommandParameter.RUN_CHANGELOG_WITH_UPDATE, String.valueOf( runChangelog ) ); return update( repository.getProviderRepository(), fileSet, parameters ); }
private UpdateScmResult update( ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String datePattern, boolean runChangelog ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setScmVersion( CommandParameter.SCM_VERSION, scmVersion ); parameters.setString( CommandParameter.CHANGELOG_DATE_PATTERN, datePattern ); parameters.setString( CommandParameter.RUN_CHANGELOG_WITH_UPDATE, String.valueOf( runChangelog ) ); return update( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public RemoveScmResult remove( ScmRepository repository, ScmFileSet fileSet, String message ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.MESSAGE, message == null ? "" : message ); return remove( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public BlameScmResult blame( ScmRepository repository, ScmFileSet fileSet, String filename ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.FILE, filename ); return blame( repository.getProviderRepository(), fileSet, parameters ); }
public AddScmResult add( ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { login( repository, fileSet ); if ( parameters.getString( CommandParameter.BINARY , null ) == null ) { // TODO: binary may be dependant on particular files though // TODO: set boolean? parameters.setString( CommandParameter.BINARY, "false" ); } return add( repository.getProviderRepository(), fileSet, parameters ); }
public AddScmResult add( ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { login( repository, fileSet ); if ( parameters.getString( CommandParameter.BINARY , null ) == null ) { // TODO: binary may be dependant on particular files though // TODO: set boolean? parameters.setString( CommandParameter.BINARY, "false" ); } return add( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public RemoveScmResult remove( ScmRepository repository, ScmFileSet fileSet, String message ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.MESSAGE, message == null ? "" : message ); return remove( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public BlameScmResult blame( ScmRepository repository, ScmFileSet fileSet, String filename ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.FILE, filename ); return blame( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tagName, ScmTagParameters scmTagParameters ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.TAG_NAME, tagName ); parameters.setScmTagParameters( CommandParameter.SCM_TAG_PARAMETERS, scmTagParameters ); return tag( repository.getProviderRepository(), fileSet, parameters ); }
public BranchScmResult branch( ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.BRANCH_NAME, branchName ); parameters.setScmBranchParameters( CommandParameter.SCM_BRANCH_PARAMETERS, scmBranchParameters ); return branch( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public CheckInScmResult checkIn( ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String message ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setScmVersion( CommandParameter.SCM_VERSION, scmVersion ); parameters.setString( CommandParameter.MESSAGE, message ); return checkin( repository.getProviderRepository(), fileSet, parameters ); }
/** * {@inheritDoc} */ public ExportScmResult export( ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String outputDirectory ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setScmVersion( CommandParameter.SCM_VERSION, scmVersion ); parameters.setString( CommandParameter.OUTPUT_DIRECTORY, outputDirectory ); return export( repository.getProviderRepository(), fileSet, parameters ); }
public BranchScmResult branch( ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters ) throws ScmException { login( repository, fileSet ); CommandParameters parameters = new CommandParameters(); parameters.setString( CommandParameter.BRANCH_NAME, branchName ); parameters.setScmBranchParameters( CommandParameter.SCM_BRANCH_PARAMETERS, scmBranchParameters ); return branch( repository.getProviderRepository(), fileSet, parameters ); }