public String getDatePattern() throws ScmException { return parameters.getString( CommandParameter.CHANGELOG_DATE_PATTERN, null ); }
public String getDatePattern() throws ScmException { return parameters.getString( CommandParameter.CHANGELOG_DATE_PATTERN, null ); }
/** * Return the parameter value as boolean. * * @param parameter The parameter * @return The parameter value as a boolean * @throws ScmException if the parameter doesn't exist */ public boolean getBoolean( CommandParameter parameter ) throws ScmException { return Boolean.valueOf( getString( parameter ) ).booleanValue(); }
/** * Return the parameter value as boolean. * * @param parameter The parameter * @return The parameter value as a boolean * @throws ScmException if the parameter doesn't exist */ public boolean getBoolean( CommandParameter parameter ) throws ScmException { return Boolean.valueOf( getString( parameter ) ).booleanValue(); }
protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet workingDirectory, CommandParameters parameters ) throws ScmException { String file = parameters.getString( CommandParameter.FILE ); return executeBlameCommand( repository, workingDirectory, file ); }
public ScmResult executeCommand( ScmProviderRepository repository, File workingDirectory, CommandParameters parameters ) throws ScmException { String file = parameters.getString( CommandParameter.FILE ); return executeLockCommand( repository, workingDirectory, file ); } }
public String getFilename() throws ScmException { return this.getCommandParameters().getString( CommandParameter.FILE ); }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { String message = parameters.getString( CommandParameter.MESSAGE ); return executeRemoveCommand( repository, fileSet, message ); } }
public ScmResult executeCommand( ScmProviderRepository repository, File workingDirectory, CommandParameters parameters ) throws ScmException { String file = parameters.getString( CommandParameter.FILE ); return executeFileInfoCommand( repository, workingDirectory, file ); } }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { ScmVersion scmVersion = parameters.getScmVersion( CommandParameter.SCM_VERSION, null ); String outputDirectory = parameters.getString( CommandParameter.OUTPUT_DIRECTORY, null ); return executeExportCommand( repository, fileSet, scmVersion, outputDirectory ); } }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { if ( fileSet.getFileList().isEmpty() ) { throw new IllegalArgumentException( "fileSet can not be empty" ); } return executeMkdirCommand( repository, fileSet, parameters.getString( CommandParameter.MESSAGE ), parameters.getBoolean( CommandParameter.SCM_MKDIR_CREATE_IN_LOCAL ) ); }
public ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { String message = parameters.getString( CommandParameter.MESSAGE ); ScmVersion scmVersion = parameters.getScmVersion( CommandParameter.SCM_VERSION, null ); return executeCheckInCommand( repository, fileSet, message, scmVersion ); } }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return executeAddCommand( repository, fileSet, parameters.getString( CommandParameter.MESSAGE, "no message" ), parameters.getBoolean( CommandParameter.BINARY ) ); } }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { ScmVersion scmVersion = parameters.getScmVersion( CommandParameter.SCM_VERSION, null ); String outputDirectory = parameters.getString( CommandParameter.OUTPUT_DIRECTORY, null ); return executeExportCommand( repository, fileSet, scmVersion, outputDirectory ); } }
/** {@inheritDoc} */ protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return executeAddCommand( repository, fileSet, parameters.getString( CommandParameter.MESSAGE, "no message" ), parameters.getBoolean( CommandParameter.BINARY ) ); } }
/** * {@inheritDoc} */ @Override protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return executeLockCommand( repository, fileSet.getBasedir(), parameters.getString( CommandParameter.FILE ) ); }
/** * {@inheritDoc} */ @Override protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return executeLockCommand( repository, fileSet.getBasedir(), parameters.getString( CommandParameter.FILE ) ); }
/** * {@inheritDoc} */ @Override protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { filename = parameters.getString( CommandParameter.FILE ); return executeUnlockCommand( repository, fileSet.getBasedir() ); }
/** * {@inheritDoc} */ @Override protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return executeFileInfoCommand( repository, fileSet.getBasedir(), parameters.getString( CommandParameter.FILE ) ); }
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 ); }