f0ee61765506abbbc725f1ba7aa0a0d914454daa,src/python/pants/backend/jvm/targets/jvm_target.py,JvmTarget,resources,#JvmTarget#,107

Before Change


  def resources(self):
    resources = []
    for spec in self._resource_specs:
      address = SyntheticAddress.parse(spec, relative_to=self.address.spec_path)
      target = self._build_graph.get_target(address)
      if target is None:
        raise TargetDefinitionException(self, "No such resource target: %s" % spec)
      resources.append(target)
    return resources

After Change


    // TODO(John Sirois): Consider removing this convenience:
    //   https://github.com/pantsbuild/pants/issues/346
    // TODO(John Sirois): Introduce a label and replace the type test?
    return [dependency for dependency in self.dependencies if isinstance(dependency, Resources)]

  @property
  def excludes(self):
    return self.payload.excludes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: f0ee61765506abbbc725f1ba7aa0a0d914454daa
Time: 2014-07-14
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/targets/jvm_target.py
Class Name: JvmTarget
Method Name: resources


Project Name: pantsbuild/pants
Commit Name: c9ea2fc92f49d938eee3eebd0feaa27dec2a4cce
Time: 2017-05-10
Author: yujieproject@gmail.com
File Name: src/python/pants/backend/jvm/targets/jvm_target.py
Class Name: JvmTarget
Method Name: exports


Project Name: pantsbuild/pants
Commit Name: ad9f8480c8e08b95d6c217ec4a126bd93b7f376a
Time: 2015-08-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/jvm/tasks/test_checkstyle.py
Class Name: CheckstyleTest
Method Name: _create_target