Add support for address subjects.

Review Request #3029 — Created Oct. 23, 2015 and submitted

jsirois
pants
jsirois/issues/2416
2416, 2448
f9122a6...
pants-reviews
ity, patricklaw, stuhood
This allows for tool bootstrapping in particular.  A planner can ask for
a promise for a given local tool target and incorporate that local tool
promise into its plans.

Modify the `src/java/codegen/selected:select` example by having the
`ScroogePlanner` require its local tool target.

 src/python/pants/engine/exp/BUILD                                                            |  1 +
 src/python/pants/engine/exp/examples/BUILD                                                   |  1 +
 src/python/pants/engine/exp/examples/planners.py                                             | 48 ++++++++++++++++-------------
 src/python/pants/engine/exp/examples/visualizer.py                                           |  7 +++--
 src/python/pants/engine/exp/scheduler.py                                                     | 83 +++++++++++++++++++++-----------------------------
 tests/python/pants_test/engine/exp/examples/scheduler_inputs/3rdparty/jvm/BLD.json           |  7 +++++
 tests/python/pants_test/engine/exp/examples/scheduler_inputs/src/scala/scrooge/BLD.json      | 10 ++++++
 tests/python/pants_test/engine/exp/examples/scheduler_inputs/src/scala/scrooge/Scrooge.scala |  1 +
 tests/python/pants_test/engine/exp/examples/scheduler_inputs/src/thrift/BLD.json             | 10 ++----
 tests/python/pants_test/engine/exp/test_engine.py                                            |  6 ++--
 tests/python/pants_test/engine/exp/test_scheduler.py                                         | 10 +++---
 11 files changed, 96 insertions(+), 88 deletions(-)

Plan viz attached for:

$ ./pants run src/python/pants/engine/exp/examples:viz -- \
  tests/python/pants_test/engine/exp/examples/scheduler_inputs \
  compile \
  src/java/codegen/selector:selected

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/87105217

Loading file attachments...

JS
JS
  1. Submitted TBR @ https://github.com/pantsbuild/pants/commit/cf364c6889a922971ed7feaf3c4a28917883300c
  2. 
      
JS
Review request changed

Status: Closed (submitted)

Loading...