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