1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.scm.command.blame;
20
21 import org.apache.maven.scm.CommandParameter;
22 import org.apache.maven.scm.CommandParameters;
23 import org.apache.maven.scm.ScmException;
24 import org.apache.maven.scm.ScmFileSet;
25 import org.apache.maven.scm.ScmResult;
26 import org.apache.maven.scm.command.AbstractCommand;
27 import org.apache.maven.scm.provider.ScmProviderRepository;
28
29
30
31
32
33 public abstract class AbstractBlameCommand extends AbstractCommand {
34 public abstract BlameScmResult executeBlameCommand(
35 ScmProviderRepository repo, ScmFileSet workingDirectory, String filename) throws ScmException;
36
37 protected ScmResult executeCommand(
38 ScmProviderRepository repository, ScmFileSet workingDirectory, CommandParameters parameters)
39 throws ScmException {
40 String file = parameters.getString(CommandParameter.FILE);
41
42 return executeBlameCommand(repository, workingDirectory, file);
43 }
44 }