001    package org.kuali.common.util.service;
002    
003    import java.io.File;
004    import java.util.List;
005    import java.util.Properties;
006    
007    public class MavenContext {
008    
009            public static final String DEFAULT_EXECUTABLE = "mvn";
010            public static final String MAVEN_OPTS = "MAVEN_OPTS";
011    
012            String executable = DEFAULT_EXECUTABLE;
013            boolean inheritMavenOpts = true;
014            File workingDir;
015            File pom;
016            boolean debug;
017            boolean errors;
018            boolean batchMode;
019            boolean quiet;
020            boolean offline;
021            List<String> profiles;
022            List<String> options;
023            List<String> goals;
024            List<String> phases;
025            List<String> passThroughPropertyKeys;
026            Properties properties;
027    
028            public String getExecutable() {
029                    return executable;
030            }
031    
032            public void setExecutable(String executable) {
033                    this.executable = executable;
034            }
035    
036            public File getWorkingDir() {
037                    return workingDir;
038            }
039    
040            public void setWorkingDir(File workingDir) {
041                    this.workingDir = workingDir;
042            }
043    
044            public File getPom() {
045                    return pom;
046            }
047    
048            public void setPom(File pom) {
049                    this.pom = pom;
050            }
051    
052            public boolean isDebug() {
053                    return debug;
054            }
055    
056            public void setDebug(boolean debug) {
057                    this.debug = debug;
058            }
059    
060            public boolean isErrors() {
061                    return errors;
062            }
063    
064            public void setErrors(boolean errors) {
065                    this.errors = errors;
066            }
067    
068            public boolean isBatchMode() {
069                    return batchMode;
070            }
071    
072            public void setBatchMode(boolean batchMode) {
073                    this.batchMode = batchMode;
074            }
075    
076            public boolean isQuiet() {
077                    return quiet;
078            }
079    
080            public void setQuiet(boolean quiet) {
081                    this.quiet = quiet;
082            }
083    
084            public boolean isOffline() {
085                    return offline;
086            }
087    
088            public void setOffline(boolean offline) {
089                    this.offline = offline;
090            }
091    
092            public List<String> getOptions() {
093                    return options;
094            }
095    
096            public void setOptions(List<String> options) {
097                    this.options = options;
098            }
099    
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    }