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.info;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24 import org.apache.maven.scm.ScmResult;
25
26
27
28
29
30 public class InfoScmResult extends ScmResult {
31 private static final long serialVersionUID = 955993340040530451L;
32
33 private List<InfoItem> infoItems;
34
35 public InfoScmResult(String commandLine, String providerMessage, String commandOutput, boolean success) {
36 super(commandLine, providerMessage, commandOutput, success);
37
38 infoItems = new ArrayList<>(0);
39 }
40
41 public InfoScmResult(String commandLine, List<InfoItem> files) {
42 super(commandLine, null, null, true);
43
44 this.infoItems = files;
45 }
46
47 public InfoScmResult(List<InfoItem> infoItems, ScmResult result) {
48 super(result);
49
50 this.infoItems = infoItems;
51 }
52
53 public InfoScmResult(ScmResult result) {
54 super(result);
55 }
56
57 public List<InfoItem> getInfoItems() {
58 return infoItems;
59 }
60 }