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