01: package com.opensymphony.webwork.util.classloader.compilers.eclipse;
02:
03: import com.opensymphony.webwork.util.classloader.compilers.JavaCompilerSettings;
04: import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
05:
06: import java.util.HashMap;
07: import java.util.Map;
08:
09: public class EclipseJavaCompilerSettings implements
10: JavaCompilerSettings {
11: private final Map map = new HashMap();
12:
13: public EclipseJavaCompilerSettings() {
14: map.put(CompilerOptions.OPTION_ReportMissingSerialVersion,
15: CompilerOptions.IGNORE);
16: map.put(CompilerOptions.OPTION_LineNumberAttribute,
17: CompilerOptions.GENERATE);
18: map.put(CompilerOptions.OPTION_SourceFileAttribute,
19: CompilerOptions.GENERATE);
20: map.put(CompilerOptions.OPTION_ReportDeprecation,
21: CompilerOptions.IGNORE);
22: map.put(CompilerOptions.OPTION_ReportUnusedImport,
23: CompilerOptions.IGNORE);
24: map.put(CompilerOptions.OPTION_Encoding, "UTF-8");
25: map.put(CompilerOptions.OPTION_LocalVariableAttribute,
26: CompilerOptions.GENERATE);
27: map.put(CompilerOptions.OPTION_Source,
28: CompilerOptions.VERSION_1_5);
29: map.put(CompilerOptions.OPTION_TargetPlatform,
30: CompilerOptions.VERSION_1_5);
31: }
32:
33: public Map getMap() {
34: return map;
35: }
36: }
|