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(); }