use of org.apache.maven.scm.CommandParameters in project maven-scm by apache.
the class AbstractScmProvider method diff.
/**
* {@inheritDoc}
*/
public DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException {
login(repository, fileSet);
CommandParameters parameters = new CommandParameters();
parameters.setScmVersion(CommandParameter.START_SCM_VERSION, startVersion);
parameters.setScmVersion(CommandParameter.END_SCM_VERSION, endVersion);
return diff(repository.getProviderRepository(), fileSet, parameters);
}
use of org.apache.maven.scm.CommandParameters in project maven-scm by apache.
the class AbstractScmProvider method tag.
/**
* {@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);
}
use of org.apache.maven.scm.CommandParameters in project maven-scm by apache.
the class AbstractScmProvider method tag.
/**
* {@inheritDoc}
*/
public TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message) throws ScmException {
login(repository, fileSet);
CommandParameters parameters = new CommandParameters();
parameters.setString(CommandParameter.TAG_NAME, tagName);
if (StringUtils.isNotEmpty(message)) {
parameters.setString(CommandParameter.MESSAGE, message);
}
ScmTagParameters scmTagParameters = new ScmTagParameters(message);
parameters.setScmTagParameters(CommandParameter.SCM_TAG_PARAMETERS, scmTagParameters);
return tag(repository.getProviderRepository(), fileSet, parameters);
}
use of org.apache.maven.scm.CommandParameters in project maven-scm by apache.
the class AbstractScmProvider method update.
/**
* {@inheritDoc}
*/
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate, String datePattern) throws ScmException {
login(repository, fileSet);
CommandParameters parameters = new CommandParameters();
parameters.setScmVersion(CommandParameter.SCM_VERSION, scmVersion);
if (lastUpdate != null) {
parameters.setDate(CommandParameter.START_DATE, lastUpdate);
}
parameters.setString(CommandParameter.CHANGELOG_DATE_PATTERN, datePattern);
parameters.setString(CommandParameter.RUN_CHANGELOG_WITH_UPDATE, "true");
return update(repository.getProviderRepository(), fileSet, parameters);
}
use of org.apache.maven.scm.CommandParameters in project maven-scm by apache.
the class AbstractScmProvider method mkdir.
/**
* {@inheritDoc}
*/
public MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException {
login(repository, fileSet);
CommandParameters parameters = new CommandParameters();
if (message == null) {
message = "";
if (!createInLocal) {
getLogger().warn("Commit message is empty!");
}
}
parameters.setString(CommandParameter.MESSAGE, message);
parameters.setString(CommandParameter.SCM_MKDIR_CREATE_IN_LOCAL, Boolean.toString(createInLocal));
return mkdir(repository.getProviderRepository(), fileSet, parameters);
}
Aggregations