1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
9
10
11
12
13
14 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15 import org.apache.continuum.xmlrpc.repository.AbstractPurgeConfiguration;
16 import org.apache.continuum.xmlrpc.repository.DirectoryPurgeConfiguration;
17 import org.apache.continuum.xmlrpc.repository.LocalRepository;
18 import org.apache.continuum.xmlrpc.repository.RepositoryPurgeConfiguration;
19 import org.apache.continuum.xmlrpc.utils.BuildTrigger;
20 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
21 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
22 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
23 import org.apache.maven.continuum.xmlrpc.system.Installation;
24 import org.apache.maven.continuum.xmlrpc.system.Profile;
25 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
26
27
28
29
30
31
32 @SuppressWarnings( "all" )
33 public class BuildDefinition
34 implements java.io.Serializable
35 {
36
37
38
39
40
41
42
43
44 private int id = 0;
45
46
47
48
49 private boolean defaultForProject = false;
50
51
52
53
54 private String goals;
55
56
57
58
59 private String arguments;
60
61
62
63
64 private String buildFile;
65
66
67
68
69
70
71
72 private boolean buildFresh = false;
73
74
75
76
77 private String description;
78
79
80
81
82 private String type;
83
84
85
86
87 private Schedule schedule;
88
89
90
91
92 private Profile profile;
93
94
95
96
97
98
99
100 private boolean alwaysBuild = false;
101
102
103
104
105
106
107 private boolean template = false;
108
109
110
111
112
113
114
115
116
117
118
119
120 public boolean equals( Object other )
121 {
122 if ( this == other )
123 {
124 return true;
125 }
126
127 if ( !( other instanceof BuildDefinition ) )
128 {
129 return false;
130 }
131
132 BuildDefinition that = (BuildDefinition) other;
133 boolean result = true;
134
135 result = result && id == that.id;
136
137 return result;
138 }
139
140
141
142
143
144
145 public String getArguments()
146 {
147 return this.arguments;
148 }
149
150
151
152
153
154
155 public String getBuildFile()
156 {
157 return this.buildFile;
158 }
159
160
161
162
163
164
165 public String getDescription()
166 {
167 return this.description;
168 }
169
170
171
172
173
174
175 public String getGoals()
176 {
177 return this.goals;
178 }
179
180
181
182
183
184
185 public int getId()
186 {
187 return this.id;
188 }
189
190
191
192
193
194
195 public Profile getProfile()
196 {
197 return this.profile;
198 }
199
200
201
202
203
204
205 public Schedule getSchedule()
206 {
207 return this.schedule;
208 }
209
210
211
212
213
214
215 public String getType()
216 {
217 return this.type;
218 }
219
220
221
222
223
224
225 public int hashCode()
226 {
227 int result = 17;
228
229 result = 37 * result + (int) id;
230
231 return result;
232 }
233
234
235
236
237
238
239
240 public boolean isAlwaysBuild()
241 {
242 return this.alwaysBuild;
243 }
244
245
246
247
248
249
250
251 public boolean isBuildFresh()
252 {
253 return this.buildFresh;
254 }
255
256
257
258
259
260
261 public boolean isDefaultForProject()
262 {
263 return this.defaultForProject;
264 }
265
266
267
268
269
270
271 public boolean isTemplate()
272 {
273 return this.template;
274 }
275
276
277
278
279
280
281
282 public void setAlwaysBuild( boolean alwaysBuild )
283 {
284 this.alwaysBuild = alwaysBuild;
285 }
286
287
288
289
290
291
292 public void setArguments( String arguments )
293 {
294 this.arguments = arguments;
295 }
296
297
298
299
300
301
302 public void setBuildFile( String buildFile )
303 {
304 this.buildFile = buildFile;
305 }
306
307
308
309
310
311
312
313 public void setBuildFresh( boolean buildFresh )
314 {
315 this.buildFresh = buildFresh;
316 }
317
318
319
320
321
322
323 public void setDefaultForProject( boolean defaultForProject )
324 {
325 this.defaultForProject = defaultForProject;
326 }
327
328
329
330
331
332
333 public void setDescription( String description )
334 {
335 this.description = description;
336 }
337
338
339
340
341
342
343 public void setGoals( String goals )
344 {
345 this.goals = goals;
346 }
347
348
349
350
351
352
353 public void setId( int id )
354 {
355 this.id = id;
356 }
357
358
359
360
361
362
363 public void setProfile( Profile profile )
364 {
365 this.profile = profile;
366 }
367
368
369
370
371
372
373 public void setSchedule( Schedule schedule )
374 {
375 this.schedule = schedule;
376 }
377
378
379
380
381
382
383 public void setTemplate( boolean template )
384 {
385 this.template = template;
386 }
387
388
389
390
391
392
393 public void setType( String type )
394 {
395 this.type = type;
396 }
397
398
399
400
401
402
403 public java.lang.String toString()
404 {
405 StringBuilder buf = new StringBuilder( 128 );
406
407 buf.append( "id = '" );
408 buf.append( getId() );
409 buf.append( "'" );
410
411 return buf.toString();
412 }
413
414 }