public class JdtJavaCompiler
extends java.lang.Object
implements net.solarnetwork.service.JavaCompiler
JavaCompiler that uses the Eclipse JDT compiler implementation.| Constructor and Description |
|---|
JdtJavaCompiler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
compileResources(java.lang.Iterable<org.springframework.core.io.Resource> javaResources,
java.nio.file.Path root,
java.util.Map<java.lang.String,?> parameters) |
java.lang.String |
getJavaVersion()
Get the desired compiler Java source/target version.
|
void |
setJavaVersion(java.lang.String javaVersion)
Set the desired compiler Java source/target version.
|
public java.lang.ClassLoader compileResources(java.lang.Iterable<org.springframework.core.io.Resource> javaResources,
java.nio.file.Path root,
java.util.Map<java.lang.String,?> parameters)
throws java.io.IOException
compileResources in interface net.solarnetwork.service.JavaCompilerjava.io.IOExceptionpublic java.lang.String getJavaVersion()
CompilerOptions.VERSION_1_8public void setJavaVersion(java.lang.String javaVersion)
javaVersion - the javaVersion to set; if null will be set to
CompilerOptions.VERSION_1_8