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