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 private static final long serialVersionUID = -1578149496089492585L;
37
38 private List<ScmFile> updatedFiles;
39
40 private List<ChangeSet> changes;
41
42 public UpdateScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
43 {
44 super( commandLine, providerMessage, commandOutput, success );
45 }
46
47 public UpdateScmResult( String commandLine, List<ScmFile> updatedFiles )
48 {
49 super( commandLine, null, null, true );
50
51 this.updatedFiles = updatedFiles;
52
53 }
54
55 public UpdateScmResult( List<ScmFile> updatedFiles, List<ChangeSet> changes, ScmResult result )
56 {
57 super( result );
58
59 this.updatedFiles = updatedFiles;
60
61 this.changes = changes;
62 }
63
64
65
66
67
68 public List<ScmFile> getUpdatedFiles()
69 {
70 return updatedFiles;
71 }
72
73
74
75
76 public List<ChangeSet> getChanges()
77 {
78 if ( changes == null )
79 {
80 return new ArrayList<ChangeSet>();
81 }
82 return changes;
83 }
84
85 public void setChanges( List<ChangeSet> changes )
86 {
87 this.changes = changes;
88 }
89 }