1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugin.eclipse.writers;
20
21 import java.io.File;
22 import java.util.List;
23 import java.util.Map;
24
25 import org.apache.maven.artifact.repository.ArtifactRepository;
26 import org.apache.maven.plugin.eclipse.EclipsePlugin;
27 import org.apache.maven.plugin.eclipse.EclipseSourceDir;
28 import org.apache.maven.plugin.eclipse.WorkspaceConfiguration;
29 import org.apache.maven.plugin.ide.IdeDependency;
30 import org.apache.maven.project.MavenProject;
31
32
33
34
35
36 public class EclipseWriterConfig
37 {
38
39
40
41 private MavenProject project;
42
43
44
45
46 private String packaging;
47
48
49
50
51 private File eclipseProjectDirectory;
52
53
54
55
56 private String eclipseProjectName;
57
58
59
60
61 private File projectBaseDir;
62
63
64
65
66 private IdeDependency[] deps = new IdeDependency[0];
67
68
69
70
71 private EclipseSourceDir[] sourceDirs;
72
73
74
75
76 private ArtifactRepository localRepository;
77
78
79
80
81 private File buildOutputDirectory;
82
83
84
85
86 private File osgiManifestFile;
87
88
89
90
91 private List projectnatures;
92
93
94
95
96 private Map projectFacets;
97
98
99
100
101 private List buildCommands;
102
103
104
105
106 private List classpathContainers;
107
108
109
110
111 private String projectNameTemplate;
112
113
114
115
116
117 private String contextName;
118
119
120
121
122 private boolean wtpapplicationxml;
123
124
125
126
127 private float wtpVersion;
128
129 private float ajdtVersion;
130
131 private WorkspaceConfiguration workspaceConfiguration;
132
133 private List linkedResources;
134
135
136
137
138 private boolean classpathContainersLast;
139
140
141
142
143 private String jeeVersion;
144
145 public WorkspaceConfiguration getWorkspaceConfiguration()
146 {
147 return workspaceConfiguration;
148 }
149
150 public void setWorkspaceConfiguration( WorkspaceConfiguration workspaceConfiguration )
151 {
152 this.workspaceConfiguration = workspaceConfiguration;
153 }
154
155
156
157
158
159
160 public IdeDependency[] getDeps()
161 {
162 return deps;
163 }
164
165
166
167
168
169
170 public void setDeps( IdeDependency[] deps )
171 {
172 this.deps = deps;
173 }
174
175
176
177
178
179
180 public File getEclipseProjectDirectory()
181 {
182 return eclipseProjectDirectory;
183 }
184
185
186
187
188
189
190 public void setEclipseProjectDirectory( File eclipseProjectDir )
191 {
192 eclipseProjectDirectory = eclipseProjectDir;
193 }
194
195
196
197
198
199
200 public String getEclipseProjectName()
201 {
202 return eclipseProjectName;
203 }
204
205
206
207
208
209
210 public void setEclipseProjectName( String eclipseProjectName )
211 {
212 this.eclipseProjectName = eclipseProjectName;
213 }
214
215
216
217
218
219
220 public MavenProject getProject()
221 {
222 return project;
223 }
224
225
226
227
228
229
230 public void setProject( MavenProject project )
231 {
232 this.project = project;
233 }
234
235
236
237
238
239
240 public EclipseSourceDir[] getSourceDirs()
241 {
242 return sourceDirs;
243 }
244
245
246
247
248
249
250 public void setSourceDirs( EclipseSourceDir[] sourceDirs )
251 {
252 this.sourceDirs = sourceDirs;
253 }
254
255
256
257
258
259
260 public File getBuildOutputDirectory()
261 {
262 return buildOutputDirectory;
263 }
264
265
266
267
268
269
270 public void setBuildOutputDirectory( File buildOutputDirectory )
271 {
272 this.buildOutputDirectory = buildOutputDirectory;
273 }
274
275
276
277
278
279
280 public ArtifactRepository getLocalRepository()
281 {
282 return localRepository;
283 }
284
285
286
287
288
289
290 public void setLocalRepository( ArtifactRepository localRepository )
291 {
292 this.localRepository = localRepository;
293 }
294
295
296
297
298
299
300 public File getOSGIManifestFile()
301 {
302 return osgiManifestFile;
303 }
304
305
306
307
308
309
310 public void setOSGIManifestFile( File manifestFile )
311 {
312 this.osgiManifestFile = manifestFile;
313 }
314
315
316
317
318
319
320 public List getClasspathContainers()
321 {
322 return classpathContainers;
323 }
324
325
326
327
328
329
330 public void setClasspathContainers( List classpathContainers )
331 {
332 this.classpathContainers = classpathContainers;
333 }
334
335
336
337
338
339
340 public List getBuildCommands()
341 {
342 return buildCommands;
343 }
344
345
346
347
348
349
350 public void setBuildCommands( List buildCommands )
351 {
352 this.buildCommands = buildCommands;
353 }
354
355
356
357
358
359
360 public List getProjectnatures()
361 {
362 return projectnatures;
363 }
364
365
366
367
368
369
370 public void setProjectnatures( List projectnatures )
371 {
372 this.projectnatures = projectnatures;
373 }
374
375
376
377
378
379
380 public Map getProjectFacets()
381 {
382 return projectFacets;
383 }
384
385
386
387
388
389
390 public void setProjectFacets( Map projectFacets )
391 {
392 this.projectFacets = projectFacets;
393 }
394
395
396
397
398
399
400 public File getProjectBaseDir()
401 {
402 return projectBaseDir;
403 }
404
405
406
407
408
409
410 public void setProjectBaseDir( File projectBaseDir )
411 {
412 this.projectBaseDir = projectBaseDir;
413 }
414
415 public void setProjectNameTemplate( String projectNameTemplate )
416 {
417 this.projectNameTemplate = projectNameTemplate;
418 }
419
420 public String getProjectNameTemplate()
421 {
422 return projectNameTemplate;
423 }
424
425 public String getContextName()
426 {
427 return contextName;
428 }
429
430 public void setContextName( String deployName )
431 {
432 contextName = deployName;
433 }
434
435
436
437
438 public String getPackaging()
439 {
440 return packaging;
441 }
442
443
444
445
446 public void setPackaging( String packaging )
447 {
448 this.packaging = packaging;
449 }
450
451
452
453
454
455
456 public boolean getWtpapplicationxml()
457 {
458 return wtpapplicationxml;
459 }
460
461
462
463
464
465
466 public void setWtpapplicationxml( boolean wtpapplicationxml )
467 {
468 this.wtpapplicationxml = wtpapplicationxml;
469 }
470
471
472
473
474
475
476 public float getWtpVersion()
477 {
478 return wtpVersion;
479 }
480
481
482
483
484
485
486 public void setWtpVersion( float wtpVersion )
487 {
488 this.wtpVersion = wtpVersion;
489 }
490
491
492
493
494
495
496 public float getAjdtVersion()
497 {
498 return ajdtVersion;
499 }
500
501
502
503
504
505
506 public void setAjdtVersion( float ajdtVersion )
507 {
508 this.ajdtVersion = ajdtVersion;
509 }
510
511
512
513
514 public List getLinkedResources()
515 {
516 return linkedResources;
517 }
518
519
520
521
522 public void setLinkedResources( List linkedResources )
523 {
524 this.linkedResources = linkedResources;
525 }
526
527
528
529
530
531
532 public boolean isClasspathContainersLast()
533 {
534 return classpathContainersLast;
535 }
536
537
538
539
540
541
542 public void setClasspathContainersLast(boolean classpathContainersLast)
543 {
544 this.classpathContainersLast = classpathContainersLast;
545 }
546
547
548
549
550
551 public String getJeeVersion()
552 {
553 return jeeVersion;
554 }
555
556
557
558
559
560 public void setJeeVersion( String jeeVersion )
561 {
562 this.jeeVersion = jeeVersion;
563 }
564
565 }