Search in sources :

Example 1 with JazzTagCommand

use of org.apache.maven.scm.provider.jazz.command.tag.JazzTagCommand in project maven-scm by apache.

the class JazzScmProvider method tag.

/**
 * {@inheritDoc}
 */
protected TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException {
    getLogger().debug("JazzScmProvider:tag()");
    // We need to call the status command first, so that we can get the details of the stream etc.
    // This is needed for workspace deliveries and snapshot promotions.
    JazzStatusCommand statusCommand = new JazzStatusCommand();
    statusCommand.setLogger(getLogger());
    statusCommand.execute(repository, fileSet, parameters);
    JazzTagCommand command = new JazzTagCommand();
    command.setLogger(getLogger());
    return (TagScmResult) command.execute(repository, fileSet, parameters);
}
Also used : JazzStatusCommand(org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand) TagScmResult(org.apache.maven.scm.command.tag.TagScmResult) JazzTagCommand(org.apache.maven.scm.provider.jazz.command.tag.JazzTagCommand)

Aggregations

TagScmResult (org.apache.maven.scm.command.tag.TagScmResult)1 JazzStatusCommand (org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand)1 JazzTagCommand (org.apache.maven.scm.provider.jazz.command.tag.JazzTagCommand)1