c8bb6f4f6c5e98f3b4c55bec38818906de4c7af6,src/python/pants/backend/jvm/tasks/provides.py,Provides,get_jar_paths_for_ivy_module,#Provides#Any#Any#,94

Before Change


      module = ivyinfo.modules_by_ref[current_ref]
      return OrderedSet([a.path for a in module.artifacts])

    if self.transitive:
      return ivyinfo.traverse_dependency_graph(ref, create_collection)
    else:
      return create_collection(ref)

  def list_jar(self, path):
    with open_jar(path, "r") as jar:
      return jar.namelist()

After Change


    return jar_paths

  def get_jar_paths_for_ivy_module(self, ivyinfo, ref):
    jar_paths = OrderedSet()
    module = ivyinfo.modules_by_ref[ref]
    jar_paths.update([a.path for a in module.artifacts])
    if self.transitive:
      for dep in ivyinfo.deps_by_caller.get(ref, []):
        jar_paths.update(self.get_jar_paths_for_ivy_module(ivyinfo, dep))
    return jar_paths

  def list_jar(self, path):
    with open_jar(path, "r") as jar:
      return jar.namelist()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: c8bb6f4f6c5e98f3b4c55bec38818906de4c7af6
Time: 2015-01-09
Author: dturner@twitter.com
File Name: src/python/pants/backend/jvm/tasks/provides.py
Class Name: Provides
Method Name: get_jar_paths_for_ivy_module


Project Name: pantsbuild/pants
Commit Name: 6969355d38be62bb8f7deb753940f554e433a2fb
Time: 2016-01-15
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/tasks/classpath_products.py
Class Name: ClasspathProducts
Method Name: get_classpath_entries_for_targets


Project Name: pantsbuild/pants
Commit Name: f6db0395707a25eec54d116f8f8155874251fde5
Time: 2015-09-17
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_binary_task.py
Class Name: JvmBinaryTask
Method Name: list_external_jar_dependencies