Search in sources :

Example 11 with UnEditScmResult

use of org.apache.maven.scm.command.unedit.UnEditScmResult in project maven-scm by apache.

the class UnEditMojo method execute.

/**
 * {@inheritDoc}
 */
public void execute() throws MojoExecutionException {
    super.execute();
    try {
        ScmRepository repository = getScmRepository();
        UnEditScmResult result = getScmManager().unedit(repository, getFileSet());
        checkResult(result);
    } catch (IOException e) {
        throw new MojoExecutionException("Cannot run unedit command : ", e);
    } catch (ScmException e) {
        throw new MojoExecutionException("Cannot run unedit command : ", e);
    }
}
Also used : ScmRepository(org.apache.maven.scm.repository.ScmRepository) ScmException(org.apache.maven.scm.ScmException) MojoExecutionException(org.apache.maven.plugin.MojoExecutionException) UnEditScmResult(org.apache.maven.scm.command.unedit.UnEditScmResult) IOException(java.io.IOException)

Example 12 with UnEditScmResult

use of org.apache.maven.scm.command.unedit.UnEditScmResult in project maven-scm by apache.

the class PerforceScmProvider method unedit.

protected UnEditScmResult unedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException {
    PerforceUnEditCommand command = new PerforceUnEditCommand();
    command.setLogger(getLogger());
    return (UnEditScmResult) command.execute(repository, fileSet, params);
}
Also used : PerforceUnEditCommand(org.apache.maven.scm.provider.perforce.command.unedit.PerforceUnEditCommand) UnEditScmResult(org.apache.maven.scm.command.unedit.UnEditScmResult)

Aggregations

UnEditScmResult (org.apache.maven.scm.command.unedit.UnEditScmResult)12 File (java.io.File)2 IOException (java.io.IOException)2 ScmException (org.apache.maven.scm.ScmException)2 CommandLineUtils (org.codehaus.plexus.util.cli.CommandLineUtils)2 Commandline (org.codehaus.plexus.util.cli.Commandline)2 APIException (com.mks.api.response.APIException)1 Response (com.mks.api.response.Response)1 ArrayList (java.util.ArrayList)1 MojoExecutionException (org.apache.maven.plugin.MojoExecutionException)1 ScmFile (org.apache.maven.scm.ScmFile)1 ScmFileSet (org.apache.maven.scm.ScmFileSet)1 ExceptionHandler (org.apache.maven.scm.provider.integrity.ExceptionHandler)1 Sandbox (org.apache.maven.scm.provider.integrity.Sandbox)1 IntegrityUnEditCommand (org.apache.maven.scm.provider.integrity.command.unedit.IntegrityUnEditCommand)1 IntegrityScmProviderRepository (org.apache.maven.scm.provider.integrity.repository.IntegrityScmProviderRepository)1 JazzScmCommand (org.apache.maven.scm.provider.jazz.command.JazzScmCommand)1 DebugLoggerConsumer (org.apache.maven.scm.provider.jazz.command.consumer.DebugLoggerConsumer)1 ErrorConsumer (org.apache.maven.scm.provider.jazz.command.consumer.ErrorConsumer)1 JazzUnEditCommand (org.apache.maven.scm.provider.jazz.command.unedit.JazzUnEditCommand)1