if (getNoPrecompile()) { addTags("precompile_off"); } else {
if (getNoPrecompile()) { addTags("precompile_off"); } else {
/** * Loads the module and maybe compiles it. Sets up the output directory. * Throws an exception if unable. (In this case, Super Dev Mode fails to start.) */ void maybePrecompile(TreeLogger logger) throws UnableToCompleteException { if (options.getNoPrecompile()) { publish(recompiler.initWithoutPrecompile(logger), null); return; } // TODO: each box will have its own binding properties Map<String, String> defaultProps = new HashMap<String, String>(); defaultProps.put("user.agent", "safari"); defaultProps.put("locale", "en"); // Create a dummy job for the first compile. // Its progress is not visible externally but will still be logged. JobEventTable dummy = new JobEventTable(); Job job = makeJob(defaultProps, logger); job.onSubmitted(dummy); publish(recompiler.precompile(job), job); if (options.isCompileTest()) { // Listener errors are fatal in compile tests Throwable error = job.getListenerFailure(); if (error != null) { UnableToCompleteException e = new UnableToCompleteException(); e.initCause(error); throw e; } } }
/** * Loads the module and maybe compiles it. Sets up the output directory. * Throws an exception if unable. (In this case, Super Dev Mode fails to start.) */ void maybePrecompile(TreeLogger logger) throws UnableToCompleteException { if (options.getNoPrecompile()) { publish(recompiler.initWithoutPrecompile(logger), null); return; } // TODO: each box will have its own binding properties Map<String, String> defaultProps = new HashMap<String, String>(); defaultProps.put("user.agent", "safari"); defaultProps.put("locale", "en"); // Create a dummy job for the first compile. // Its progress is not visible externally but will still be logged. JobEventTable dummy = new JobEventTable(); Job job = makeJob(defaultProps, logger); job.onSubmitted(dummy); publish(recompiler.precompile(job), job); if (options.isCompileTest()) { // Listener errors are fatal in compile tests Throwable error = job.getListenerFailure(); if (error != null) { UnableToCompleteException e = new UnableToCompleteException(); e.initCause(error); throw e; } } }