Search in sources :

Example 1 with JazzListCommand

use of org.apache.maven.scm.provider.jazz.command.list.JazzListCommand 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);
}
Also used : JazzStatusCommand(org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand) ListScmResult(org.apache.maven.scm.command.list.ListScmResult) JazzListCommand(org.apache.maven.scm.provider.jazz.command.list.JazzListCommand)

Aggregations

ListScmResult (org.apache.maven.scm.command.list.ListScmResult)1 JazzListCommand (org.apache.maven.scm.provider.jazz.command.list.JazzListCommand)1 JazzStatusCommand (org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand)1