self._partition_size_hint = self.get_options().partition_size_hint
// JVM options for running the compiler.
self._jvm_options = self.context.config.getlist(config_section, "jvm_args")
// The ivy confs for which we"re building.
self._confs = self.context.config.getlist(config_section, "confs", default=["default"])
self._args = list(self.get_options().args)
if self.get_options().warnings:
self._args.extend(self.get_options().warning_args)
else:
self._args.extend(self.get_options().no_warning_args)
// Set up dep checking if needed.
def munge_flag(flag):
flag_value = getattr(self.get_options(), flag, None)
return None if flag_value == "off" else flag_value
check_missing_deps = munge_flag("missing_deps")
check_missing_direct_deps = munge_flag("missing_direct_deps")
check_unnecessary_deps = munge_flag("unnecessary_deps")
if check_missing_deps or check_missing_direct_deps or check_unnecessary_deps:
target_whitelist = self.context.config.getlist("jvm", "missing_deps_target_whitelist", default=[])
// Must init it here, so it can set requirements on the context.
self._dep_analyzer = JvmDependencyAnalyzer(self.context,
check_missing_deps,
check_missing_direct_deps,
check_unnecessary_deps,
target_whitelist)
else:
self._dep_analyzer = None
// If non-zero, and we have fewer than this number of locally-changed targets,
// then we partition them separately, to preserve stability in the face of repeated
// compilations.
self._locally_changed_targets_heuristic_limit = self.context.config.getint(config_section,
"locally_changed_targets_heuristic_limit", 0)
self._upstream_class_to_path = None // Computed lazily as needed.
After Change
self._partition_size_hint = self.get_options().partition_size_hint
// JVM options for running the compiler.
self._jvm_options = self.get_options().jvm_options
// The ivy confs for which we"re building.
self._confs = self.get_options().confs
self._args = list(self.get_options().args)
if self.get_options().warnings:
self._args.extend(self.get_options().warning_args)
else:
self._args.extend(self.get_options().no_warning_args)
// Set up dep checking if needed.
def munge_flag(flag):
flag_value = getattr(self.get_options(), flag, None)
return None if flag_value == "off" else flag_value
check_missing_deps = munge_flag("missing_deps")
check_missing_direct_deps = munge_flag("missing_direct_deps")
check_unnecessary_deps = munge_flag("unnecessary_deps")
if check_missing_deps or check_missing_direct_deps or check_unnecessary_deps:
target_whitelist = self.get_options().missing_deps_whitelist
// Must init it here, so it can set requirements on the context.
self._dep_analyzer = JvmDependencyAnalyzer(self.context,
check_missing_deps,
check_missing_direct_deps,
check_unnecessary_deps,