1
2
3
4
5
6
7
8 package org.apache.maven.continuum.model.scm;
9
10
11
12
13
14 import org.apache.continuum.model.project.ProjectScmRoot;
15 import org.apache.continuum.model.release.ContinuumReleaseResult;
16 import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
17 import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18 import org.apache.continuum.model.repository.LocalRepository;
19 import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
20 import org.apache.maven.continuum.model.project.BuildDefinition;
21 import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
22 import org.apache.maven.continuum.model.project.BuildQueue;
23 import org.apache.maven.continuum.model.project.BuildResult;
24 import org.apache.maven.continuum.model.project.ContinuumDatabase;
25 import org.apache.maven.continuum.model.project.Project;
26 import org.apache.maven.continuum.model.project.ProjectDependency;
27 import org.apache.maven.continuum.model.project.ProjectDeveloper;
28 import org.apache.maven.continuum.model.project.ProjectGroup;
29 import org.apache.maven.continuum.model.project.ProjectNotifier;
30 import org.apache.maven.continuum.model.project.Schedule;
31 import org.apache.maven.continuum.model.system.Installation;
32 import org.apache.maven.continuum.model.system.NotificationAddress;
33 import org.apache.maven.continuum.model.system.Profile;
34 import org.apache.maven.continuum.model.system.SystemConfiguration;
35 import org.apache.maven.continuum.project.ContinuumProjectState;
36
37
38
39
40
41
42 @SuppressWarnings( "all" )
43 public class ScmResult
44 implements java.io.Serializable
45 {
46
47
48
49
50
51
52
53
54 private boolean success = false;
55
56
57
58
59 private String commandLine;
60
61
62
63
64 private String providerMessage;
65
66
67
68
69 private String commandOutput;
70
71
72
73
74 private String exception;
75
76
77
78
79 private java.util.List<ChangeSet> changes;
80
81
82
83
84
85
86
87
88
89
90
91 public void addChange( ChangeSet changeSet )
92 {
93 getChanges().add( changeSet );
94 }
95
96
97
98
99
100
101 public java.util.List<ChangeSet> getChanges()
102 {
103 if ( this.changes == null )
104 {
105 this.changes = new java.util.ArrayList<ChangeSet>();
106 }
107
108 return this.changes;
109 }
110
111
112
113
114
115
116 public String getCommandLine()
117 {
118 return this.commandLine;
119 }
120
121
122
123
124
125
126 public String getCommandOutput()
127 {
128 return this.commandOutput;
129 }
130
131
132
133
134
135
136 public String getException()
137 {
138 return this.exception;
139 }
140
141
142
143
144
145
146 public String getProviderMessage()
147 {
148 return this.providerMessage;
149 }
150
151
152
153
154
155
156 public boolean isSuccess()
157 {
158 return this.success;
159 }
160
161
162
163
164
165
166 public void removeChange( ChangeSet changeSet )
167 {
168 getChanges().remove( changeSet );
169 }
170
171
172
173
174
175
176 public void setChanges( java.util.List<ChangeSet> changes )
177 {
178 this.changes = changes;
179 }
180
181
182
183
184
185
186 public void setCommandLine( String commandLine )
187 {
188 this.commandLine = commandLine;
189 }
190
191
192
193
194
195
196 public void setCommandOutput( String commandOutput )
197 {
198 this.commandOutput = commandOutput;
199 }
200
201
202
203
204
205
206 public void setException( String exception )
207 {
208 this.exception = exception;
209 }
210
211
212
213
214
215
216 public void setProviderMessage( String providerMessage )
217 {
218 this.providerMessage = providerMessage;
219 }
220
221
222
223
224
225
226 public void setSuccess( boolean success )
227 {
228 this.success = success;
229 }
230
231 }