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.ScmException;
23 import org.apache.maven.scm.ScmFileSet;
24 import org.apache.maven.scm.ScmRequest;
25 import org.apache.maven.scm.repository.ScmRepository;
26
27
28
29
30
31 public class BlameScmRequest extends ScmRequest {
32 private static final long serialVersionUID = 8257038591897128936L;
33
34
35
36
37 private boolean ignoreWhitespace;
38
39 public BlameScmRequest(ScmRepository scmRepository, ScmFileSet scmFileSet) {
40 super(scmRepository, scmFileSet);
41 }
42
43 public void setFilename(String filename) throws ScmException {
44 this.getCommandParameters().setString(CommandParameter.FILE, filename);
45 }
46
47 public String getFilename() throws ScmException {
48 return this.getCommandParameters().getString(CommandParameter.FILE);
49 }
50
51 public boolean isIgnoreWhitespace() {
52 return ignoreWhitespace;
53 }
54
55 public void setIgnoreWhitespace(boolean ignoreWhitespace) throws ScmException {
56 this.ignoreWhitespace = ignoreWhitespace;
57
58 if (ignoreWhitespace) {
59 this.getCommandParameters().setString(CommandParameter.IGNORE_WHITESPACE, "TRUE");
60 } else {
61 this.getCommandParameters().setString(CommandParameter.IGNORE_WHITESPACE, "FALSE");
62 }
63 }
64 }