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

Before 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()

After Change


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

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 878078a2cf582be91756cf703bbda13ff61e8ef7
Time: 2015-01-09
Author: nhoward@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: 073499a033039c7df2225bfe195344587cd65826
Time: 2015-01-09
Author: nhoward@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: eac5ecf8d3ca723865405599c764765306f78288
Time: 2018-08-06
Author: dawagner@gmail.com
File Name: src/python/pants/backend/jvm/tasks/classpath_util.py
Class Name: ClasspathUtil
Method Name: compute_classpath