WebModeCompilerFrontEnd frontEnd = new WebModeCompilerFrontEnd(
compilationState, rebindPermOracle);
jjs = new JavaToJavaScriptCompiler(logger, frontEnd, declEntryPts,
jjsOptions);
StandardLinkerContext linkerContext = new StandardLinkerContext(logger,
module, outDir, generatorResourcesDir, jjsOptions);
compilePermutations(logger, linkerContext, generatorArtifacts);
if (jjsOptions.isValidateOnly()) {
logger.log(TreeLogger.INFO, "Validation succeeded", null);
return;
}
logger.log(TreeLogger.INFO, "Compilation succeeded", null);
linkerContext.addOrReplaceArtifacts(generatorArtifacts);
linkerContext.link(logger, linkerContext, null);
}