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