use of org.apache.maven.scm.command.list.ListScmResult in project maven-scm by apache.
the class SvnMkdirCommandTckTest method testMkdirCommandMkdirUrl.
public void testMkdirCommandMkdirUrl() throws Exception {
ScmFileSet fileSet = new ScmFileSet(getWorkingCopy(), new File(getMissingDirectory()));
MkdirScmResult result = getScmManager().mkdir(getScmRepository(), fileSet, "Mkdir message", false);
assertResultIsSuccess(result);
assertNotNull(result.getRevision());
ListScmResult listResult = getScmManager().list(getScmRepository(), fileSet, true, null);
assertTrue("Directory should have been found.", listResult.isSuccess());
}
use of org.apache.maven.scm.command.list.ListScmResult in project maven-scm by apache.
the class HgScmProvider method list.
/**
* @since 1.5
* {@inheritDoc}
*/
@Override
protected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException {
HgListCommand hgListCommand = new HgListCommand();
hgListCommand.setLogger(getLogger());
return (ListScmResult) hgListCommand.executeCommand(repository, fileSet, parameters);
}
use of org.apache.maven.scm.command.list.ListScmResult in project maven-scm by apache.
the class IntegrityScmProvider method list.
/**
* Maps to si viewproject
*/
@Override
protected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException {
IntegrityListCommand command = new IntegrityListCommand();
command.setLogger(getLogger());
return (ListScmResult) command.execute(repository, fileSet, params);
}
use of org.apache.maven.scm.command.list.ListScmResult in project maven-scm by apache.
the class JazzListCommand method executeListCommand.
/**
* {@inheritDoc}
*/
protected ListScmResult executeListCommand(ScmProviderRepository repo, ScmFileSet fileSet, boolean recursive, ScmVersion version) throws ScmException {
if (getLogger().isDebugEnabled()) {
getLogger().debug("Executing list command...");
}
JazzScmProviderRepository jazzRepo = (JazzScmProviderRepository) repo;
JazzListConsumer listConsumer = new JazzListConsumer(repo, getLogger());
ErrorConsumer errConsumer = new ErrorConsumer(getLogger());
JazzScmCommand listCmd = createListCommand(jazzRepo, fileSet, recursive, version);
int status = listCmd.execute(listConsumer, errConsumer);
if (status != 0) {
return new ListScmResult(listCmd.getCommandString(), "Error code for Jazz SCM list command - " + status, errConsumer.getOutput(), false);
}
return new ListScmResult(listCmd.getCommandString(), listConsumer.getFiles());
}
use of org.apache.maven.scm.command.list.ListScmResult in project maven-scm by apache.
the class JazzScmProvider method list.
/**
* {@inheritDoc}
*/
protected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException {
getLogger().debug("JazzScmProvider:list()");
// We need to call the status command first, so that we can get the details of the stream etc.
// This is needed for workspace and component names.
JazzStatusCommand statusCommand = new JazzStatusCommand();
statusCommand.setLogger(getLogger());
statusCommand.execute(repository, fileSet, parameters);
JazzListCommand command = new JazzListCommand();
command.setLogger(getLogger());
return (ListScmResult) command.execute(repository, fileSet, parameters);
}
Aggregations