Fix jvm_compile product publishing for cached builds

Review Request #3161 - Created Nov. 22, 2015 and submitted

Information
Stu Hood
pants
2608
Reviewers
pants-reviews
kwlzn, molsen, nhoward_tw

I noticed that on cached/valid builds (ie, the second run) we were seeing 0.0 values for dep usage in all cases, meaning that the product was not being produced... tracked it down to a generator being used in a case where a collection might be consumed multiple times.

  • Pass a list to _register_vts rather than a generator: the generator is consumed by the production of classes_by_source, and then is then empty for the second product
  • Add an integration test for dep-usage.jvm that catches this issue and others

https://travis-ci.org/pantsbuild/pants/builds/92611576

Stu Hood
Patrick Lawson
Kris Wilson
Stu Hood
Review request changed

Status: Closed (submitted)

Change Summary:

Merged as b6150c70e3bf43a53f90f60ecfafea81a30667e5

Loading...