1
2
3
4
5 package org.apache.maven.plugin.lifecycle;
6
7
8
9
10
11 import java.util.Date;
12
13
14
15
16
17
18 public class Execution implements java.io.Serializable {
19
20
21
22
23
24
25
26
27
28 private Object configuration;
29
30
31
32
33 private java.util.List goals;
34
35
36
37
38
39
40
41
42
43
44
45 public void addGoal( String string )
46 {
47 if ( !(string instanceof String) )
48 {
49 throw new ClassCastException( "Execution.addGoals(string) parameter must be instanceof " + String.class.getName() );
50 }
51 getGoals().add( string );
52 }
53
54
55
56
57
58
59 public Object getConfiguration()
60 {
61 return this.configuration;
62 }
63
64
65
66
67
68
69 public java.util.List getGoals()
70 {
71 if ( this.goals == null )
72 {
73 this.goals = new java.util.ArrayList();
74 }
75
76 return this.goals;
77 }
78
79
80
81
82
83
84 public void removeGoal( String string )
85 {
86 if ( !(string instanceof String) )
87 {
88 throw new ClassCastException( "Execution.removeGoals(string) parameter must be instanceof " + String.class.getName() );
89 }
90 getGoals().remove( string );
91 }
92
93
94
95
96
97
98 public void setConfiguration( Object configuration )
99 {
100 this.configuration = configuration;
101 }
102
103
104
105
106
107
108 public void setGoals( java.util.List goals )
109 {
110 this.goals = goals;
111 }
112
113
114 private String modelEncoding = "UTF-8";
115
116
117
118
119
120
121 public void setModelEncoding( String modelEncoding )
122 {
123 this.modelEncoding = modelEncoding;
124 }
125
126
127
128
129 public String getModelEncoding()
130 {
131 return modelEncoding;
132 }
133 }