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.status;
20
21 import java.util.Collections;
22 import java.util.List;
23
24 import org.apache.maven.scm.ScmFile;
25 import org.apache.maven.scm.ScmResult;
26
27
28
29
30 public class StatusScmResult extends ScmResult {
31 private static final long serialVersionUID = 7152442589455369403L;
32
33 private List<ScmFile> changedFiles;
34
35 public StatusScmResult(String commandLine, String providerMessage, String commandOutput, boolean success) {
36 super(commandLine, providerMessage, commandOutput, success);
37
38 this.changedFiles = Collections.emptyList();
39 }
40
41 public StatusScmResult(String commandLine, List<ScmFile> changedFiles) {
42 super(commandLine, null, null, true);
43
44 if (changedFiles == null) {
45 throw new NullPointerException("changedFiles can't be null.");
46 }
47
48 this.changedFiles = changedFiles;
49 }
50
51 public StatusScmResult(List<ScmFile> changedFiles, ScmResult result) {
52 super(result);
53
54 if (changedFiles == null) {
55 throw new NullPointerException("changedFiles can't be null.");
56 }
57
58 this.changedFiles = changedFiles;
59 }
60
61 public List<ScmFile> getChangedFiles() {
62 return changedFiles;
63 }
64 }