bfb1453dd22fd12c69e314e0995499e3f4835614,src/python/twitter/pants/tasks/jvm_task.py,JvmTask,classpath,#JvmTask#Any#Any#,25
Before Change
// TODO(John Sirois): undo cheeseball! - derive src/resources from target attribute and then
// later fix tests to declare their resources as well?
classpath.extend(os .path.join(get_buildroot(), path)
for path in ("src/resources", "tests/resources"))
return classpath
After Change
// TODO(John Sirois): Fixup jvm test targets to declare their resources and fixup resources to
// be their own target libraries or tests then depend on:
// http://jira.local.twitter.com/browse/AWESOME-108
bases = set()
for target in self.context.targets():
if isinstance(target, JvmTarget) and (is_test(target) or hasattr(target, "resources")):
if target.target_base not in bases:
sibling_resources_base = os.path.join(os.path.dirname(target.target_base), "resources")
classpath.append(os.path.join(get_buildroot(), sibling_resources_base))
bases.add(target.target_base)
return classpath
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances Project Name: pantsbuild/pants
Commit Name: bfb1453dd22fd12c69e314e0995499e3f4835614
Time: 2012-10-31
Author: jsirois@twitter.com
File Name: src/python/twitter/pants/tasks/jvm_task.py
Class Name: JvmTask
Method Name: classpath
Project Name: snipsco/snips-nlu
Commit Name: 7c50d9677032e4ea15c5c5ca5c96a85994aa39a4
Time: 2018-02-15
Author: clement.doumouro@gmail.com
File Name: nlu_dataset/intent_dataset.py
Class Name: IntentDataset
Method Name: entities
Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/cover/wink.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 80a794e587f9f63f28afea741f97e36a7ca8e427
Time: 2017-02-01
Author: wjs.scanlon@gmail.com
File Name: homeassistant/components/lock/wink.py
Class Name:
Method Name: setup_platform