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