private static MinimalRebuildCacheManager createMinimalRebuildCacheManager( PrintWriterTreeLogger logger, Options options,File baseCacheDir) { return new MinimalRebuildCacheManager( logger, baseCacheDir, ImmutableMap.of( "style", options.getOutput().name(), "closureFormattedOutput", String.valueOf(options.isClosureFormattedOutput()), "generateJsInteropExports", String.valueOf(options.shouldGenerateJsInteropExports()), "exportFilters", options.getJsInteropExportFilter().toString(), "methodDisplayMode", options.getMethodNameDisplayMode().name())); }
CompilerOptionsImpl(CompileDir compileDir, String moduleName, Options options) { this.compileDir = compileDir; this.incremental = options.isIncrementalCompileEnabled(); this.moduleNames = Lists.newArrayList(moduleName); this.sourceLevel = options.getSourceLevel(); this.failOnError = options.isFailOnError(); this.strictSourceResources = options.enforceStrictResources(); this.strictPublicResources = options.enforceStrictResources(); this.logLevel = options.getLogLevel(); this.jsInteropMode = options.getJsInteropMode(); this.methodNameDisplayMode = options.getMethodNameDisplayMode(); this.properties = LinkedListMultimap.create(options.getProperties()); this.closureFormattedOutput = options.isClosureFormattedOutput(); }
CompilerOptionsImpl(CompileDir compileDir, String moduleName, Options options) { this.compileDir = compileDir; this.incremental = options.isIncrementalCompileEnabled(); this.moduleNames = Lists.newArrayList(moduleName); this.sourceLevel = options.getSourceLevel(); this.failOnError = options.isFailOnError(); this.logLevel = options.getLogLevel(); this.generateJsInteropExports = options.shouldGenerateJsInteropExports(); this.jsInteropExportFilter = new WhitelistRegexFilter(); this.jsInteropExportFilter.addAll(options.getJsInteropExportFilter()); this.methodNameDisplayMode = options.getMethodNameDisplayMode(); this.properties = LinkedListMultimap.create(options.getProperties()); this.closureFormattedOutput = options.isClosureFormattedOutput(); this.output = options.getOutput(); }