01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.drools.commons.jci.compilers;
19:
20: /**
21: * Most common denominator for JavaCompiler settings.
22: *
23: * If you need more specific settings you have to provide
24: * the native compiler configurations to the compilers.
25: * Writing of a custom factory is suggested.
26: *
27: * @author tcurdt
28: */
29: public class JavaCompilerSettings {
30:
31: private String targetVersion;
32: private String sourceVersion;
33: private String sourceEncoding;
34: private boolean warnings;
35: private boolean deprecations;
36: private boolean verbose;
37:
38: public void setTargetVersion(final String pTargetVersion) {
39: targetVersion = pTargetVersion;
40: }
41:
42: public String getTargetVersion() {
43: return targetVersion;
44: }
45:
46: public void setSourceVersion(final String pSourceVersion) {
47: sourceVersion = pSourceVersion;
48: }
49:
50: public String getSourceVersion() {
51: return sourceVersion;
52: }
53:
54: public void setSourceEncoding(final String pSourceEncoding) {
55: sourceEncoding = pSourceEncoding;
56: }
57:
58: public String getSourceEncoding() {
59: return sourceEncoding;
60: }
61:
62: public void setWarnings(final boolean pWarnings) {
63: warnings = pWarnings;
64: }
65:
66: public boolean isWarnings() {
67: return warnings;
68: }
69:
70: public void setDeprecations(final boolean pDeprecations) {
71: deprecations = pDeprecations;
72: }
73:
74: public boolean isDeprecations() {
75: return deprecations;
76: }
77:
78: public void setVerbose(final boolean pVerbose) {
79: verbose = pVerbose;
80: }
81:
82: public boolean isVerbose() {
83: return verbose;
84: }
85:
86: }
|