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