Example usage for org.apache.commons.jci.compilers JavaCompilerSettings JavaCompilerSettings

List of usage examples for org.apache.commons.jci.compilers JavaCompilerSettings JavaCompilerSettings

Introduction

In this page you can find the example usage for org.apache.commons.jci.compilers JavaCompilerSettings JavaCompilerSettings.

Prototype

public JavaCompilerSettings() 

Source Link

Usage

From source file:org.xchain.framework.jsl.TemplateCompiler.java

public void init(ClassLoader classLoader) {
    this.templateClassLoader = new TemplateClassLoader(classLoader);

    resourceReader = new WrappedResourceReader(new MemoryResourceReader(), templateClassLoader);

    settings = new JavaCompilerSettings();
    settings.setSourceVersion(SOURCE_VERSION);
    settings.setSourceEncoding(SOURCE_ENCODING);
    settings.setTargetVersion(TARGET_VERSION);

    compiler = new JavaCompilerFactory().createCompiler("eclipse");
}