added project_info flag to depmap

Review Request #721 — Created July 22, 2014 and submitted

ajohnson
pants
pants-reviews
johanoskarsson
We want to be able to use "./pants goal resolve depmap /target/ --depmap-project-info" to see information about targets and information about required jars. A good example is "./pants goal resolve depmap src/java/com/pants/examples/protobuf --depmap-project-info". Then at the top we see:


"libraries": {
        "com.google.protobuf:protobuf-java:2.4.1": [
            "/Users/ajohnson/.ivy2/twitter-commons/com.google.protobuf/protobuf-java/jars/protobuf-java-2.4.1.jar"
        ]
    }, 

This was a quick fix, just needed to add "require_data('ivy_jar_products')"


  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
AJ
JO
  1. 
      
  2. Space after #
  3. 
      
FK
  1. 
      
  2. src/python/pants/backend/jvm/tasks/depmap.py (Diff revision 2)
     
     
     
     
     
     
     
     
    revert. if you have two targets you'll print info twice
  3. 
      
FK
  1. 
      
  2. why did you remove it?
    1. It looks like the commented line does the same thing as the lines below it. Thought it should be deleted for cleanliness. Better to leave it in?
  3. revert
  4. revert
  5. 
      
AJ
FK
  1. Ship It!
  2. 
      
JO
  1. Ship It!
  2. 
      
AJ
Review request changed

Status: Closed (submitted)

Loading...