1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.service;
17
18 import java.io.File;
19 import java.util.List;
20 import java.util.Properties;
21
22 public class MavenContext {
23
24 public static final String DEFAULT_EXECUTABLE = "mvn";
25 public static final String MAVEN_OPTS = "MAVEN_OPTS";
26
27 String executable = DEFAULT_EXECUTABLE;
28 boolean inheritMavenOpts = true;
29 File workingDir;
30 File pom;
31 boolean debug;
32 boolean errors;
33 boolean batchMode;
34 boolean quiet;
35 boolean offline;
36 List<String> profiles;
37 List<String> options;
38 List<String> goals;
39 List<String> phases;
40 List<String> passThroughPropertyKeys;
41 Properties properties;
42
43 public String getExecutable() {
44 return executable;
45 }
46
47 public void setExecutable(String executable) {
48 this.executable = executable;
49 }
50
51 public File getWorkingDir() {
52 return workingDir;
53 }
54
55 public void setWorkingDir(File workingDir) {
56 this.workingDir = workingDir;
57 }
58
59 public File getPom() {
60 return pom;
61 }
62
63 public void setPom(File pom) {
64 this.pom = pom;
65 }
66
67 public boolean isDebug() {
68 return debug;
69 }
70
71 public void setDebug(boolean debug) {
72 this.debug = debug;
73 }
74
75 public boolean isErrors() {
76 return errors;
77 }
78
79 public void setErrors(boolean errors) {
80 this.errors = errors;
81 }
82
83 public boolean isBatchMode() {
84 return batchMode;
85 }
86
87 public void setBatchMode(boolean batchMode) {
88 this.batchMode = batchMode;
89 }
90
91 public boolean isQuiet() {
92 return quiet;
93 }
94
95 public void setQuiet(boolean quiet) {
96 this.quiet = quiet;
97 }
98
99 public boolean isOffline() {
100 return offline;
101 }
102
103 public void setOffline(boolean offline) {
104 this.offline = offline;
105 }
106
107 public List<String> getOptions() {
108 return options;
109 }
110
111 public void setOptions(List<String> options) {
112 this.options = options;
113 }
114
115 public List<String> getGoals() {
116 return goals;
117 }
118
119 public void setGoals(List<String> goals) {
120 this.goals = goals;
121 }
122
123 public List<String> getPhases() {
124 return phases;
125 }
126
127 public void setPhases(List<String> phases) {
128 this.phases = phases;
129 }
130
131 public boolean isInheritMavenOpts() {
132 return inheritMavenOpts;
133 }
134
135 public void setInheritMavenOpts(boolean inheritMavenOpts) {
136 this.inheritMavenOpts = inheritMavenOpts;
137 }
138
139 public List<String> getProfiles() {
140 return profiles;
141 }
142
143 public void setProfiles(List<String> profiles) {
144 this.profiles = profiles;
145 }
146
147 public List<String> getPassThroughPropertyKeys() {
148 return passThroughPropertyKeys;
149 }
150
151 public void setPassThroughPropertyKeys(List<String> passThroughPropertyKeys) {
152 this.passThroughPropertyKeys = passThroughPropertyKeys;
153 }
154
155 public Properties getProperties() {
156 return properties;
157 }
158
159 public void setProperties(Properties properties) {
160 this.properties = properties;
161 }
162
163 }