1
2
3
4
5 package org.apache.maven.plugin.tools.model;
6
7
8
9
10
11 import java.util.Date;
12
13 /**
14 *
15 * A sub-process execution of a lifecycle to satisfy the
16 * needs of a mojo.
17 *
18 *
19 * @version $Revision$ $Date$
20 */
21 public class LifecycleExecution implements java.io.Serializable {
22
23
24
25
26
27
28 /**
29 * Field lifecycle
30 */
31 private String lifecycle;
32
33 /**
34 * Field phase
35 */
36 private String phase;
37
38 /**
39 * Field goal
40 */
41 private String goal;
42
43
44
45
46
47
48 /**
49 * Get A goal, not attached to a lifecycle phase, which should
50 * be executed ahead of this mojo.
51 *
52 */
53 public String getGoal()
54 {
55 return this.goal;
56 }
57
58 /**
59 * Get The name of the overlay to apply to the sub-lifecycle
60 * before executing it. If specified, this
61 * lifecycle overlay definition will be bundled
62 * with the plugin.
63 *
64 */
65 public String getLifecycle()
66 {
67 return this.lifecycle;
68 }
69
70 /**
71 * Get The phase in the sub-lifecycle.
72 */
73 public String getPhase()
74 {
75 return this.phase;
76 }
77
78 /**
79 * Set A goal, not attached to a lifecycle phase, which should
80 * be executed ahead of this mojo.
81 *
82 *
83 * @param goal
84 */
85 public void setGoal(String goal)
86 {
87 this.goal = goal;
88 }
89
90 /**
91 * Set The name of the overlay to apply to the sub-lifecycle
92 * before executing it. If specified, this
93 * lifecycle overlay definition will be bundled
94 * with the plugin.
95 *
96 *
97 * @param lifecycle
98 */
99 public void setLifecycle(String lifecycle)
100 {
101 this.lifecycle = lifecycle;
102 }
103
104 /**
105 * Set The phase in the sub-lifecycle.
106 *
107 * @param phase
108 */
109 public void setPhase(String phase)
110 {
111 this.phase = phase;
112 }
113
114
115 private String modelEncoding = "UTF-8";
116
117 public void setModelEncoding( String modelEncoding )
118 {
119 this.modelEncoding = modelEncoding;
120 }
121
122 public String getModelEncoding()
123 {
124 return modelEncoding;
125 }}