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