blob: 9730b0ff2f65c3b28b4e7af7a9bdbc85f3db8130 [file] [log] [blame]
public static Compiler getCompiler() {
if (compiler == null) {
CompilerOptions options = new CompilerOptions();
options.handleImportProblemAsError(false);
compiler =
new Compiler(
null,
DefaultErrorHandlingPolicies.proceedWithAllProblems(),
options.getConfigurableOptions(Locale.getDefault()),
new ICompilerRequestor() {
private CompilationResult compilationResult; // toto
public void acceptResult(CompilationResult compilationResult) {
this.compilationResult = compilationResult;
}
public CompilationResult retrieveCompilationResult() {
return compilationResult;
}
},
compilerProblemFactory);
}
return compiler;
}