1 package org.apache.maven.scm.command.info;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.scm.ScmResult;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27
28
29
30
31
32 public class InfoScmResult
33 extends ScmResult
34 {
35
36 private static final long serialVersionUID = 955993340040530451L;
37 private List<InfoItem> infoItems;
38
39 public InfoScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
40 {
41 super( commandLine, providerMessage, commandOutput, success );
42
43 infoItems = new ArrayList<InfoItem>( 0 );
44 }
45
46 public InfoScmResult( String commandLine, List<InfoItem> files )
47 {
48 super( commandLine, null, null, true );
49
50 this.infoItems = files;
51 }
52
53 public InfoScmResult( List<InfoItem> infoItems, ScmResult result )
54 {
55 super( result );
56
57 this.infoItems = infoItems;
58 }
59
60 public InfoScmResult( ScmResult result )
61 {
62 super( result );
63 }
64
65 public List<InfoItem> getInfoItems()
66 {
67 return infoItems;
68 }
69 }