pantsbuild/pants — pull request #868 by peiyuwang (2014-12-15 19:52:36+00:00)
Title: using class binary name same as CmdLineProcessor

./pants goal compile tests/java/com/twitter/common/args:small

FAILURE
Traceback (most recent call last):
File "/Users/peiyu/.pants.d/bin/pants.pex/pants-1.0.14rc2-science-hacks-201412101700-testing-py27.pex/.bootstrap/_pex/pex.py", line 225, in execute
self.execute_entry(entry_point, args)
File "/Users/peiyu/.pants.d/bin/pants.pex/pants-1.0.14rc2-science-hacks-201412101700-testing-py27.pex/.bootstrap/_pex/pex.py", line 273, in execute_entry
runner(entry_point)
File "/Users/peiyu/.pants.d/bin/pants.pex/pants-1.0.14rc2-science-hacks-201412101700-testing-py27.pex/.bootstrap/_pex/pex.py", line 296, in execute_pkg_resources
runner()
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/bin/pants_exe.py", line 178, in main
_run()
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/bin/pants_exe.py", line 155, in _run
result = command.run()
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/commands/goal_runner.py", line 268, in run
return engine.execute(context, self.goals)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/engine/engine.py", line 48, in execute
self.attempt(context, goals)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/engine/round_engine.py", line 185, in attempt
goal_executor.attempt(explain)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/engine/round_engine.py", line 42, in attempt
task.execute()
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/core/tasks/group_task.py", line 352, in execute
group_member.execute_chunk(chunk)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py", line 450, in execute_chunk
self._register_products(vts.targets, analysis_file)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py", line 826, in _register_products
resources = self._resources_by_class_file(cls, resource_mapping)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py", line 811, in _resources_by_class_file
return resource_mapping.get(class_name, [])
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/resource_mapping.py", line 100, in get
return self.mappings.get(key, default)
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/resource_mapping.py", line 91, in mappings
self._read_resource_mappings(mappings, f.readlines())
File "/Users/peiyu/workspace/source2/science/.pex/install/pantsbuild.pants-0.0.24-py2-none-any.whl.849817490395e8d68ec48ae93a0abd0b1163da20/pantsbuild.pants-0.0.24-py2-none-any.whl/pants/backend/jvm/tasks/jvm_compile/resource_mapping.py", line 56, in _read_resource_mappings
Expected classname -> path, got "{line}"'''.format(line=line)))
ValueError:
Unable to parse resource mappings.
Expected classname -> path, got "com.twitter.common.args.ArgsTest$App -> /Users/peiyu/workspace/source2/science/.pants.d/compile/jvm/java/classes/com/twitter/common/args/apt/cmdline.arg.info.txt.2"