3b9451ca512dcd204328c8547cdc3a1a986d8b6a,src/python/pants/backend/jvm/tasks/ivy_resolve.py,IvyResolve,execute,#IvyResolve#,103

Before Change


    for conf in self.confs:
      // It"s important we add the full classpath as an (ordered) unit for code that is classpath
      // order sensitive
      compile_classpath.update(map(lambda entry: (conf, entry), ivy_classpath))

    if self._report:
      self._generate_ivy_report(relevant_targets)

After Change



    // Record the ordered subset of jars that each jar_library/leaf depends on using
    // stable symlinks within the working copy.
    ivy_jar_products = self._generate_ivy_jar_products(relevant_targets)
    symlink_map = self.context.products.get_data("ivy_resolve_symlink_map")
    for conf in self.confs:
      ivy_jar_memo = {}
      ivy_info_list = ivy_jar_products[conf]
      if not ivy_info_list:
        continue
      // TODO: refactor ivy_jar_products to remove list
      assert len(ivy_info_list) == 1, (
        "The values in ivy_jar_products should always be length 1,"
        " since we no longer have exclusives groups."
      )
      ivy_info = ivy_info_list[0]
      for target in relevant_targets:
        if not isinstance(target, JarLibrary):
          continue
        // Add the artifacts from each dependency module.
        artifact_paths = []
        for artifact in ivy_info.get_artifacts_for_jar_library(target, memo=ivy_jar_memo):
          artifact_paths.append(symlink_map[artifact.path])
        compile_classpath.add_for_target(target, [(conf, entry) for entry in artifact_paths])

    if self._report:
      self._generate_ivy_report(relevant_targets)
    if self.context.products.is_required_data("ivy_jar_products"):
      self._populate_ivy_jar_products(relevant_targets, ivy_jar_products)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: pantsbuild/pants
Commit Name: 3b9451ca512dcd204328c8547cdc3a1a986d8b6a
Time: 2015-02-23
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/ivy_resolve.py
Class Name: IvyResolve
Method Name: execute


Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_provider


Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_inventory_provider