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.diff;
20
21 import java.util.List;
22 import java.util.Map;
23
24 import org.apache.maven.scm.ScmFile;
25 import org.apache.maven.scm.ScmResult;
26
27
28
29
30
31 public class DiffScmResult extends ScmResult {
32 private static final long serialVersionUID = 4036970486972633082L;
33
34 private List<ScmFile> changedFiles;
35
36 private Map<String, CharSequence> differences;
37
38 private String patch;
39
40 public DiffScmResult(
41 String commandLine, List<ScmFile> changedFiles, Map<String, CharSequence> differences, String patch) {
42 this(commandLine, null, null, true);
43 this.changedFiles = changedFiles;
44 this.differences = differences;
45 this.patch = patch;
46 }
47
48 public DiffScmResult(String commandLine, String providerMessage, String commandOutput, boolean success) {
49 super(commandLine, providerMessage, commandOutput, success);
50 }
51
52 public DiffScmResult(
53 List<ScmFile> changedFiles, Map<String, CharSequence> differences, String patch, ScmResult result) {
54 super(result);
55
56 this.changedFiles = changedFiles;
57
58 this.differences = differences;
59
60 this.patch = patch;
61 }
62
63 public List<ScmFile> getChangedFiles() {
64 return changedFiles;
65 }
66
67 public Map<String, CharSequence> getDifferences() {
68 return differences;
69 }
70
71 public String getPatch() {
72 return patch;
73 }
74 }