Add support for snapshotting `ClasspathProducts`.

Review Request #2837 — Created Sept. 16, 2015 and submitted

jsirois
pants
jsirois/classpath_products/support_snapshots
1841, 2211
2832
8309199...
pants-reviews
nhoward_tw, stuhood
This is part of the story in supporting proper transitive
`JvmBinary.deploy_excludes` in `JvmBinaryTask` derived classes and
in-general sets up users of these products to take a snapshot and then
build upon the products without pollution.

Tests are added to verify the copies used in snapshotting are
sufficiently divorced from their originals.

 src/python/pants/backend/jvm/tasks/classpath_products.py             | 57 +++++++++++++++++++++++++++++++++++++++++++++-----
 src/python/pants/goal/products.py                                    | 18 ++++++++++++++--
 tests/python/pants_test/backend/jvm/tasks/test_classpath_products.py | 47 +++++++++++++++++++++++++++++++++++++++++
 tests/python/pants_test/goal/test_union_products.py                  | 23 ++++++++++++++++++++
 4 files changed, 138 insertions(+), 7 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/80729346
JS
JS
JS
JS
JS
NH
  1. Ship It!
  2. 
      
JS
  1. Thanks Nick - submitted @ https://github.com/pantsbuild/pants/commit/b50a78cf6d80b97916b61a9ec43ba4001406d93f
  2. 
      
JS
Review request changed

Status: Closed (submitted)

Loading...