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