1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.codehaus.gmavenplus.model;
18
19 import java.io.File;
20 import java.io.Serializable;
21 import java.util.List;
22 import java.util.Set;
23
24
25
26
27
28
29 public class GroovyCompileConfiguration implements Serializable {
30 private static final long serialVersionUID = 1L;
31
32 private Set<File> sources;
33 private List<?> classpath;
34 private File compileOutputDirectory;
35 private IncludeClasspath includeClasspath;
36 private String groovyVersion;
37 private boolean skipBytecodeCheck;
38 private boolean debug;
39 private boolean verbose;
40 private int warningLevel;
41 private int tolerance;
42 private boolean invokeDynamic;
43 private Boolean parallelParsing;
44 private File configScript;
45 private boolean parameters;
46 private boolean previewFeatures;
47 private String sourceEncoding;
48 private String targetBytecode;
49
50 public GroovyCompileConfiguration(Set<File> sources, List<?> classpath, File compileOutputDirectory) {
51 this.sources = sources;
52 this.classpath = classpath;
53 this.compileOutputDirectory = compileOutputDirectory;
54 }
55
56 public Set<File> getSources() {
57 return sources;
58 }
59
60 public List<?> getClasspath() {
61 return classpath;
62 }
63
64 public File getCompileOutputDirectory() {
65 return compileOutputDirectory;
66 }
67
68 public IncludeClasspath getIncludeClasspath() {
69 return includeClasspath;
70 }
71
72 public void setIncludeClasspath(IncludeClasspath includeClasspath) {
73 this.includeClasspath = includeClasspath;
74 }
75
76 public boolean isSkipBytecodeCheck() {
77 return skipBytecodeCheck;
78 }
79
80 public void setSkipBytecodeCheck(boolean skipBytecodeCheck) {
81 this.skipBytecodeCheck = skipBytecodeCheck;
82 }
83
84 public boolean isDebug() {
85 return debug;
86 }
87
88 public void setDebug(boolean debug) {
89 this.debug = debug;
90 }
91
92 public boolean isVerbose() {
93 return verbose;
94 }
95
96 public void setVerbose(boolean verbose) {
97 this.verbose = verbose;
98 }
99
100 public int getWarningLevel() {
101 return warningLevel;
102 }
103
104 public void setWarningLevel(int warningLevel) {
105 this.warningLevel = warningLevel;
106 }
107
108 public int getTolerance() {
109 return tolerance;
110 }
111
112 public void setTolerance(int tolerance) {
113 this.tolerance = tolerance;
114 }
115
116 public boolean isInvokeDynamic() {
117 return invokeDynamic;
118 }
119
120 public void setInvokeDynamic(boolean invokeDynamic) {
121 this.invokeDynamic = invokeDynamic;
122 }
123
124 public Boolean getParallelParsing() {
125 return parallelParsing;
126 }
127
128 public void setParallelParsing(Boolean parallelParsing) {
129 this.parallelParsing = parallelParsing;
130 }
131
132 public File getConfigScript() {
133 return configScript;
134 }
135
136 public void setConfigScript(File configScript) {
137 this.configScript = configScript;
138 }
139
140 public boolean isParameters() {
141 return parameters;
142 }
143
144 public void setParameters(boolean parameters) {
145 this.parameters = parameters;
146 }
147
148 public boolean isPreviewFeatures() {
149 return previewFeatures;
150 }
151
152 public void setPreviewFeatures(boolean previewFeatures) {
153 this.previewFeatures = previewFeatures;
154 }
155
156 public String getSourceEncoding() {
157 return sourceEncoding;
158 }
159
160 public void setSourceEncoding(String sourceEncoding) {
161 this.sourceEncoding = sourceEncoding;
162 }
163
164 public String getTargetBytecode() {
165 return targetBytecode;
166 }
167
168 public void setTargetBytecode(String targetBytecode) {
169 this.targetBytecode = targetBytecode;
170 }
171 }