1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.commons.jci.compilers;
19
20
21
22
23
24
25
26
27
28
29
30
31 public class JavaCompilerSettings {
32
33 private String targetVersion = "1.4";
34 private String sourceVersion = "1.4";
35 private String sourceEncoding = "UTF-8";
36 private boolean warnings = false;
37 private boolean deprecations = false;
38 private boolean debug = false;
39
40
41 @Deprecated
42 private boolean verbose = false;
43
44 public JavaCompilerSettings() {
45 }
46
47 public JavaCompilerSettings( final JavaCompilerSettings pSettings ) {
48 targetVersion = pSettings.targetVersion;
49 sourceVersion = pSettings.sourceVersion;
50 sourceEncoding = pSettings.sourceEncoding;
51 warnings = pSettings.warnings;
52 deprecations = pSettings.deprecations;
53 debug = pSettings.debug;
54 }
55
56 public void setTargetVersion( final String pTargetVersion ) {
57 targetVersion = pTargetVersion;
58 }
59
60 public String getTargetVersion() {
61 return targetVersion;
62 }
63
64
65 public void setSourceVersion( final String pSourceVersion ) {
66 sourceVersion = pSourceVersion;
67 }
68
69 public String getSourceVersion() {
70 return sourceVersion;
71 }
72
73
74 public void setSourceEncoding( final String pSourceEncoding ) {
75 sourceEncoding = pSourceEncoding;
76 }
77
78 public String getSourceEncoding() {
79 return sourceEncoding;
80 }
81
82
83 public void setWarnings( final boolean pWarnings ) {
84 warnings = pWarnings;
85 }
86
87 public boolean isWarnings() {
88 return warnings;
89 }
90
91
92 public void setDeprecations( final boolean pDeprecations ) {
93 deprecations = pDeprecations;
94 }
95
96 public boolean isDeprecations() {
97 return deprecations;
98 }
99
100 public void setDebug( final boolean pDebug ) {
101 debug = pDebug;
102 }
103
104 public boolean isDebug() {
105 return debug;
106 }
107
108
109 @Deprecated
110 public void setVerbose( final boolean pVerbose ) {
111 verbose = pVerbose;
112 }
113
114
115 @Deprecated
116 public boolean isVerbose() {
117 return verbose;
118 }
119
120 }