f6db0395707a25eec54d116f8f8155874251fde5,src/python/pants/backend/jvm/tasks/jvm_binary_task.py,JvmBinaryTask,list_external_jar_dependencies,#JvmBinaryTask#Any#Any#,50

Before Change


    :returns: An iterable of (basedir, jarfile) tuples where the jarfile names are
              guaranteed to be unique.
    
    jardepmap = self.context.products.get("jar_dependencies") or {}
    if confs:
      return self._mapped_dependencies(jardepmap, binary, confs)
    else:

After Change


    :returns: A list of (jar path, coordinate) tuples.
    :rtype: list of (string, :class:`pants.backend.jvm.jar_dependency_utils.M2Coordinate`)
    
    classpath_products = self.context.products.get_data("compile_classpath")
    classpath_entries = classpath_products.get_artifact_classpath_entries_for_targets([binary])
    confs = confs or ("default",)
    external_jars = OrderedSet(jar_entry for conf, jar_entry in classpath_entries if conf in confs)
    return [(entry.path, entry.coordinate) for entry in external_jars
            if not entry.is_excluded_by(binary.deploy_excludes)]

  @contextmanager
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: pantsbuild/pants
Commit Name: a0a4eba7bf111138c9660e35e34e665961d1e720
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/bootstrap_jvm_tools.py
Class Name: BootstrapJvmTools
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: a0a4eba7bf111138c9660e35e34e665961d1e720
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/bootstrap_utils.py
Class Name: BootstrapUtils
Method Name: get_jvm_build_tools_classpath