final Compiler compiler = new Compiler(new PrintStream(
LOGGER_OUTPUT_STREAM, false, "UTF-8"));
final CompilerOptions compilerOptions = new CompilerOptions();
CompilationLevel.SIMPLE_OPTIMIZATIONS
.setOptionsForCompilationLevel(compilerOptions);
compilerOptions.setCodingConvention(new ClosureCodingConvention());
if (isSourceMappingEnabled(options)) {
compilerOptions.setSourceMapFormat(Format.V3);
compilerOptions.setSourceMapDetailLevel(DetailLevel.ALL);
}
setupOptions(compilerOptions, options);