1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class BuildBase
15 extends PluginConfiguration
16 implements java.io.Serializable, java.lang.Cloneable
17 {
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 private String defaultGoal;
34
35
36
37
38 private java.util.List<Resource> resources;
39
40
41
42
43 private java.util.List<Resource> testResources;
44
45
46
47
48
49 private String directory;
50
51
52
53
54
55
56
57
58
59
60
61
62 private String finalName;
63
64
65
66
67 private java.util.List<String> filters;
68
69
70
71
72
73
74
75
76
77
78
79 public void addFilter( String string )
80 {
81 getFilters().add( string );
82 }
83
84
85
86
87
88
89 public void addResource( Resource resource )
90 {
91 getResources().add( resource );
92 }
93
94
95
96
97
98
99 public void addTestResource( Resource resource )
100 {
101 getTestResources().add( resource );
102 }
103
104
105
106
107
108
109 public BuildBase clone()
110 {
111 try
112 {
113 BuildBase copy = (BuildBase) super.clone();
114
115 if ( this.resources != null )
116 {
117 copy.resources = new java.util.ArrayList<Resource>();
118 for ( Resource item : this.resources )
119 {
120 copy.resources.add( ( (Resource) item).clone() );
121 }
122 }
123
124 if ( this.testResources != null )
125 {
126 copy.testResources = new java.util.ArrayList<Resource>();
127 for ( Resource item : this.testResources )
128 {
129 copy.testResources.add( ( (Resource) item).clone() );
130 }
131 }
132
133 if ( this.filters != null )
134 {
135 copy.filters = new java.util.ArrayList<String>();
136 copy.filters.addAll( this.filters );
137 }
138
139 return copy;
140 }
141 catch ( java.lang.Exception ex )
142 {
143 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
144 + " does not support clone()" ).initCause( ex );
145 }
146 }
147
148
149
150
151
152
153
154
155
156
157
158
159
160 public String getDefaultGoal()
161 {
162 return this.defaultGoal;
163 }
164
165
166
167
168
169
170
171 public String getDirectory()
172 {
173 return this.directory;
174 }
175
176
177
178
179
180
181 public java.util.List<String> getFilters()
182 {
183 if ( this.filters == null )
184 {
185 this.filters = new java.util.ArrayList<String>();
186 }
187
188 return this.filters;
189 }
190
191
192
193
194
195
196
197
198
199
200 public String getFinalName()
201 {
202 return this.finalName;
203 }
204
205
206
207
208
209
210 public java.util.List<Resource> getResources()
211 {
212 if ( this.resources == null )
213 {
214 this.resources = new java.util.ArrayList<Resource>();
215 }
216
217 return this.resources;
218 }
219
220
221
222
223
224
225 public java.util.List<Resource> getTestResources()
226 {
227 if ( this.testResources == null )
228 {
229 this.testResources = new java.util.ArrayList<Resource>();
230 }
231
232 return this.testResources;
233 }
234
235
236
237
238
239
240 public void removeFilter( String string )
241 {
242 getFilters().remove( string );
243 }
244
245
246
247
248
249
250 public void removeResource( Resource resource )
251 {
252 getResources().remove( resource );
253 }
254
255
256
257
258
259
260 public void removeTestResource( Resource resource )
261 {
262 getTestResources().remove( resource );
263 }
264
265
266
267
268
269
270
271
272
273
274
275
276
277 public void setDefaultGoal( String defaultGoal )
278 {
279 this.defaultGoal = defaultGoal;
280 }
281
282
283
284
285
286
287
288 public void setDirectory( String directory )
289 {
290 this.directory = directory;
291 }
292
293
294
295
296
297
298
299 public void setFilters( java.util.List<String> filters )
300 {
301 this.filters = filters;
302 }
303
304
305
306
307
308
309
310
311
312
313 public void setFinalName( String finalName )
314 {
315 this.finalName = finalName;
316 }
317
318
319
320
321
322
323
324
325
326
327 public void setResources( java.util.List<Resource> resources )
328 {
329 this.resources = resources;
330 }
331
332
333
334
335
336
337
338
339 public void setTestResources( java.util.List<Resource> testResources )
340 {
341 this.testResources = testResources;
342 }
343
344 }