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);
}
}
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);
}
Aggregations