ab684469a7527b71a608c2dfbba0c35d85e4ff9a,src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py,JvmCompile,__init__,#JvmCompile#,165

Before Change


    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,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 24

Instances


Project Name: pantsbuild/pants
Commit Name: ab684469a7527b71a608c2dfbba0c35d85e4ff9a
Time: 2015-01-05
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py
Class Name: JvmCompile
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 04a368c3617d3ceac60170f6a68428bdfd815cb1
Time: 2015-02-10
Author: zundel@squareup.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: ee0732a42bdd614baf0e065326f1f6872a041d3a
Time: 2014-11-04
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/markdown_to_html.py
Class Name: MarkdownToHtml
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 8644bcae650cf01b682db6a7dc5af223c53532ad
Time: 2015-02-09
Author: zundel@squareup.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: ab684469a7527b71a608c2dfbba0c35d85e4ff9a
Time: 2015-01-05
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py
Class Name: JvmCompile
Method Name: __init__