incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1591952 - /sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
Date Fri, 02 May 2014 15:39:56 GMT
Author: cziegeler
Date: Fri May  2 15:39:56 2014
New Revision: 1591952

URL: http://svn.apache.org/r1591952
Log:
Use available constants.

Modified:
    sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java

Modified: sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java?rev=1591952&r1=1591951&r2=1591952&view=diff
==============================================================================
--- sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
(original)
+++ sling/trunk/contrib/commons/compiler/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
Fri May  2 15:39:56 2014
@@ -194,18 +194,18 @@ public class EclipseJavaCompiler impleme
         // create properties for the settings object
         final Map<String, String> props = new HashMap<String, String>();
         if (options.isGenerateDebugInfo()) {
-            props.put("org.eclipse.jdt.core.compiler.debug.localVariable", "generate");
-            props.put("org.eclipse.jdt.core.compiler.debug.lineNumber", "generate");
-            props.put("org.eclipse.jdt.core.compiler.debug.sourceFile", "generate");
+            props.put(CompilerOptions.OPTION_LocalVariableAttribute, "generate");
+            props.put(CompilerOptions.OPTION_LineNumberAttribute, "generate");
+            props.put(CompilerOptions.OPTION_SourceFileAttribute, "generate");
         }
         if (options.getSourceVersion() != null) {
-            props.put("org.eclipse.jdt.core.compiler.source", options.getSourceVersion());
-            props.put("org.eclipse.jdt.core.compiler.compliance", options.getSourceVersion());
+            props.put(CompilerOptions.OPTION_Source, options.getSourceVersion());
+            props.put(CompilerOptions.OPTION_Compliance, options.getSourceVersion());
         }
         if (options.getTargetVersion() != null) {
-            props.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", options.getTargetVersion());
+            props.put(CompilerOptions.OPTION_TargetPlatform, options.getTargetVersion());
         }
-        props.put("org.eclipse.jdt.core.encoding", "UTF8");
+        props.put(CompilerOptions.OPTION_Encoding, "UTF8");
 
         // create the settings
         final CompilerOptions settings = new CompilerOptions(props);



Mime
View raw message