1 package org.apache.maven.scm.command.update;
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.ChangeSet;
23 import org.apache.maven.scm.ScmFile;
24 import org.apache.maven.scm.ScmResult;
25
26 import java.util.ArrayList;
27 import java.util.List;
28
29
30
31
32
33 public class UpdateScmResult
34 extends ScmResult
35 {
36
37 private static final long serialVersionUID = 1L;
38
39 private List<ScmFile> updatedFiles;
40
41 private List<ChangeSet> changes;
42
43 public UpdateScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
44 {
45 super( commandLine, providerMessage, commandOutput, success );
46 }
47
48 public UpdateScmResult( String commandLine, List<ScmFile> updatedFiles )
49 {
50 super( commandLine, null, null, true );
51
52 this.updatedFiles = updatedFiles;
53
54 }
55
56 public UpdateScmResult( List<ScmFile> updatedFiles, List<ChangeSet> changes, ScmResult result )
57 {
58 super( result );
59
60 this.updatedFiles = updatedFiles;
61
62 this.changes = changes;
63 }
64
65
66
67
68
69 public List<ScmFile> getUpdatedFiles()
70 {
71 return updatedFiles;
72 }
73
74
75
76
77 public List<ChangeSet> getChanges()
78 {
79 if ( changes == null )
80 {
81 return new ArrayList<ChangeSet>();
82 }
83 return changes;
84 }
85
86 public void setChanges( List<ChangeSet> changes )
87 {
88 this.changes = changes;
89 }
90 }