7a3040ebd3a70e49669d4a150c644b657c564cfd,src/python/pants/backend/jvm/targets/jvm_binary.py,JvmApp,binary,#JvmApp#,389
Before Change
@property
def binary(self):
// TODO(pl): Assert there is only one dep and it is a JvmBinary
return self.dependencies[0]
@property
def jar_dependencies(self):
return self.binary.jar_dependencies
After Change
@property
def binary(self):
dependencies = self.dependencies
if len(dependencies) != 1:
raise TargetDefinitionException(self, "A JvmApp must define exactly one JvmBinary "
"dependency, have: %s" % dependencies)
binary = dependencies[0]
if not isinstance(binary, JvmBinary):
raise TargetDefinitionException(self, "Expected JvmApp binary dependency to be a JvmBinary "
"target, found %s" % binary)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: 7a3040ebd3a70e49669d4a150c644b657c564cfd
Time: 2014-06-11
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/targets/jvm_binary.py
Class Name: JvmApp
Method Name: binary
Project Name: pantsbuild/pants
Commit Name: 570690f2974a698afee90026f4275da375cb5d4e
Time: 2015-10-19
Author: benjyw@gmail.com
File Name: src/python/pants/build_graph/target.py
Class Name: Target
Method Name: target_base
Project Name: pantsbuild/pants
Commit Name: 87bef813b3e92946d127f6fc58e211e69cb8e8bc
Time: 2014-06-27
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/targets/jvm_target.py
Class Name: JvmTarget
Method Name: resources