1 package org.apache.maven.scm.command.remove;
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
35 public abstract class AbstractRemoveCommand
36 extends AbstractCommand
37 {
38 protected abstract ScmResult executeRemoveCommand( ScmProviderRepository repository, ScmFileSet fileSet,
39 String message )
40 throws ScmException;
41
42
43 protected ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet,
44 CommandParameters parameters )
45 throws ScmException
46 {
47 String message = parameters.getString( CommandParameter.MESSAGE );
48
49 return executeRemoveCommand( repository, fileSet, message );
50 }
51 }