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 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
32 extends ScmRequest
33 {
34
35
36
37
38 private boolean ignoreWhitespace;
39
40
41 public BlameScmRequest( ScmRepository scmRepository, ScmFileSet scmFileSet )
42 {
43 super( scmRepository, scmFileSet );
44 }
45
46 public void setFilename( String filename )
47 throws ScmException
48 {
49 this.getCommandParameters().setString( CommandParameter.FILE, filename );
50 }
51
52 public String getFilename()
53 throws ScmException
54 {
55 return this.getCommandParameters().getString( CommandParameter.FILE );
56 }
57
58 public boolean isIgnoreWhitespace()
59 {
60 return ignoreWhitespace;
61 }
62
63 public void setIgnoreWhitespace( boolean ignoreWhitespace )
64 throws ScmException
65 {
66 this.ignoreWhitespace = ignoreWhitespace;
67
68 if ( ignoreWhitespace )
69 {
70 this.getCommandParameters().setString( CommandParameter.IGNORE_WHITESPACE, "TRUE" );
71 }
72 else
73 {
74 this.getCommandParameters().setString( CommandParameter.IGNORE_WHITESPACE, "FALSE" );
75 }
76 }
77 }