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