Leverage default targets throughout pants BUILDs.

Review Request #4287 - Created Oct. 7, 2016 and submitted

Information
John Sirois
pants
jsirois/BUILD/default_name
3936
5b93ccf...
Reviewers
pants-reviews
benjyw
Add support for the default name protocol to managed_jar_dependencies to
support this cleanup sweep.

 3rdparty/jvm/com/google/auto/value/BUILD                                                                        | 2 +-
 3rdparty/jvm/commons-io/BUILD                                                                                   | 1 -
 contrib/android/examples/src/android/example_library/BUILD                                                      | 1 -
 contrib/android/examples/src/android/hello/BUILD                                                                | 1 -
 contrib/android/examples/src/android/hello_with_library/BUILD                                                   | 1 -
 contrib/cpp/examples/src/cpp/calcsqrt/BUILD                                                                     | 1 -
 contrib/cpp/examples/src/cpp/example/hello/BUILD                                                                | 1 -
 contrib/cpp/src/python/pants/contrib/cpp/targets/BUILD                                                          | 1 -
 contrib/cpp/src/python/pants/contrib/cpp/tasks/BUILD                                                            | 1 -
 contrib/cpp/src/python/pants/contrib/cpp/toolchain/BUILD                                                        | 1 -
 contrib/findbugs/src/python/pants/contrib/findbugs/tasks/BUILD                                                  | 1 -
 contrib/findbugs/tests/python/pants_test/contrib/findbugs/tasks/BUILD                                           | 1 -
 contrib/go/src/python/pants/contrib/go/subsystems/BUILD                                                         | 1 -
 contrib/go/src/python/pants/contrib/go/targets/BUILD                                                            | 1 -
 contrib/go/src/python/pants/contrib/go/tasks/BUILD                                                              | 1 -
 contrib/node/examples/3rdparty/node/babel-loader/BUILD                                                          | 1 -
 contrib/node/examples/3rdparty/node/babel/BUILD                                                                 | 1 -
 contrib/node/examples/3rdparty/node/css-loader/BUILD                                                            | 1 -
 contrib/node/examples/3rdparty/node/mocha/BUILD                                                                 | 1 -
 contrib/node/examples/3rdparty/node/null-loader/BUILD                                                           | 1 -
 contrib/node/examples/3rdparty/node/react/BUILD                                                                 | 1 -
 contrib/node/examples/3rdparty/node/style-loader/BUILD                                                          | 1 -
 contrib/node/examples/3rdparty/node/webpack/BUILD                                                               | 1 -
 contrib/node/examples/src/node/preinstalled-project/BUILD                                                       | 1 -
 contrib/node/examples/src/node/server-project/BUILD                                                             | 1 -
 contrib/node/examples/src/node/web-build-tool/BUILD                                                             | 1 -
 contrib/node/examples/src/node/web-component-button/BUILD                                                       | 1 -
 contrib/node/examples/src/node/web-project/BUILD                                                                | 1 -
 contrib/node/src/python/pants/contrib/node/subsystems/resolvers/BUILD                                           | 1 -
 contrib/node/src/python/pants/contrib/node/targets/BUILD                                                        | 1 -
 contrib/node/src/python/pants/contrib/node/tasks/BUILD                                                          | 1 -
 contrib/python/src/python/pants/contrib/python/isort/BUILD                                                      | 1 -
 contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/BUILD                             | 1 -
 contrib/scalajs/examples/src/scala/org/pantsbuild/scalajs/example/factfinder/BUILD                              | 2 +-
 contrib/scalajs/src/python/pants/contrib/scalajs/subsystems/BUILD                                               | 1 -
 contrib/scalajs/src/python/pants/contrib/scalajs/targets/BUILD                                                  | 1 -
 contrib/scalajs/src/python/pants/contrib/scalajs/tasks/BUILD                                                    | 1 -
 contrib/scalajs/tests/scala/org/pantsbuild/scalajs/example/factfinder/BUILD                                     | 2 +-
 contrib/scrooge/examples/src/thrift/org/pantsbuild/contrib/scrooge/android_generator/BUILD                      | 1 -
 contrib/scrooge/examples/src/thrift/org/pantsbuild/contrib/scrooge/dummy_generator/BUILD                        | 1 -
 contrib/scrooge/src/python/pants/contrib/scrooge/tasks/BUILD                                                    | 1 -
 examples/src/antlr/org/pantsbuild/example/exp/BUILD                                                             | 2 +-
 examples/src/java/org/pantsbuild/example/annotation/example/BUILD                                               | 2 +-
 examples/src/java/org/pantsbuild/example/annotation/main/BUILD                                                  | 2 +-
 examples/src/java/org/pantsbuild/example/annotation/processor/BUILD                                             | 2 +-
 examples/src/java/org/pantsbuild/example/antlr3/BUILD                                                           | 2 +-
 examples/src/java/org/pantsbuild/example/antlr4/BUILD                                                           | 2 +-
 examples/src/java/org/pantsbuild/example/autovalue/BUILD                                                        | 2 +-
 examples/src/java/org/pantsbuild/example/hello/simple/BUILD                                                     | 2 +-
 examples/src/java/org/pantsbuild/example/java_sources/BUILD                                                     | 2 +-
 examples/src/java/org/pantsbuild/example/jaxb/main/BUILD                                                        | 2 +-
 examples/src/java/org/pantsbuild/example/jaxb/reader/BUILD                                                      | 2 +-
 examples/src/java/org/pantsbuild/example/make_it_rain/BUILD                                                     | 2 +-
 examples/src/java/org/pantsbuild/example/protobuf/distance/BUILD                                                | 2 +-
 examples/src/java/org/pantsbuild/example/protobuf/imports/BUILD                                                 | 2 +-
 examples/src/java/org/pantsbuild/example/protobuf/unpacked_jars/BUILD                                           | 2 +-
 examples/src/java/org/pantsbuild/example/wire/element/BUILD                                                     | 2 +-
 examples/src/java/org/pantsbuild/example/wire/roots/BUILD                                                       | 2 +-
 examples/src/java/org/pantsbuild/example/wire/temperatureservice/BUILD                                          | 2 +-
 examples/src/protobuf/org/pantsbuild/example/distance/BUILD                                                     | 2 +-
 examples/src/protobuf/org/pantsbuild/example/imports/BUILD                                                      | 2 +-
 examples/src/protobuf/org/pantsbuild/example/unpacked_jars/BUILD                                                | 2 +-
 examples/src/python/example/hello/greet/BUILD                                                                   | 2 +-
 examples/src/python/example/hello/main/BUILD                                                                    | 2 +-
 examples/src/resources/org/pantsbuild/example/hello/BUILD                                                       | 2 +-
 examples/src/resources/org/pantsbuild/example/jaxb/BUILD                                                        | 2 +-
 examples/src/resources/org/pantsbuild/example/names/BUILD                                                       | 2 +-
 examples/src/scala/org/pantsbuild/example/fact/BUILD                                                            | 2 +-
 examples/src/scala/org/pantsbuild/example/hello/BUILD                                                           | 2 +-
 examples/src/scala/org/pantsbuild/example/hello/exe/BUILD                                                       | 2 +-
 examples/src/scala/org/pantsbuild/example/hello/welcome/BUILD                                                   | 2 +-
 examples/src/scala/org/pantsbuild/example/scala_with_java_sources/BUILD                                         | 2 +-
 examples/src/scala/org/pantsbuild/example/styleissue/BUILD                                                      | 2 +-
 examples/src/wire/org/pantsbuild/example/element/BUILD                                                          | 2 +-
 examples/src/wire/org/pantsbuild/example/roots/BUILD                                                            | 2 +-
 examples/src/wire/org/pantsbuild/example/temperature/BUILD                                                      | 2 +-
 examples/tests/java/org/pantsbuild/example/hello/greet/BUILD                                                    | 2 +-
 examples/tests/java/org/pantsbuild/example/usejaxb/BUILD                                                        | 2 +-
 examples/tests/java/org/pantsbuild/example/useproto/BUILD                                                       | 2 +-
 examples/tests/java/org/pantsbuild/example/useprotoimports/BUILD                                                | 2 +-
 examples/tests/java/org/pantsbuild/example/usethrift/BUILD                                                      | 2 +-
 examples/tests/java/org/pantsbuild/example/usewire/BUILD                                                        | 2 +-
 examples/tests/python/example_test/hello/greet/BUILD                                                            | 2 +-
 examples/tests/scala/org/pantsbuild/example/hello/welcome/BUILD                                                 | 2 +-
 pants-plugins/tests/python/internal_backend_test/sitegen/BUILD                                                  | 1 -
 pants-plugins/tests/python/internal_backend_test/utilities/BUILD                                                | 1 -
 src/docs/BUILD                                                                                                  | 1 -
 src/java/com/sun/tools/javac/api/BUILD                                                                          | 1 -
 src/java/org/pantsbuild/args4j/BUILD                                                                            | 1 -
 src/java/org/pantsbuild/junit/annotations/BUILD                                                                 | 1 -
 src/java/org/pantsbuild/testing/BUILD                                                                           | 1 -
 src/java/org/pantsbuild/tools/jar/BUILD                                                                         | 1 -
 src/java/org/pantsbuild/tools/junit/BUILD                                                                       | 1 -
 src/java/org/pantsbuild/tools/junit/withretry/BUILD                                                             | 1 -
 src/python/pants/BUILD                                                                                          | 1 -
 src/python/pants/backend/docgen/targets/BUILD                                                                   | 1 -
 src/python/pants/backend/docgen/tasks/BUILD                                                                     | 1 -
 src/python/pants/backend/graph_info/tasks/BUILD                                                                 | 1 -
 src/python/pants/backend/jvm/targets/managed_jar_dependencies.py                                                | 8 ++++++--
 src/python/pants/backend/jvm/tasks/jvm_compile/BUILD                                                            | 1 -
 src/python/pants/backend/jvm/zinc/BUILD                                                                         | 1 -
 src/python/pants/bin/BUILD                                                                                      | 1 -
 src/python/pants/build_graph/BUILD                                                                              | 1 -
 src/python/pants/cache/BUILD                                                                                    | 1 -
 src/python/pants/core_tasks/BUILD                                                                               | 1 -
 src/python/pants/engine/BUILD                                                                                   | 1 -
 src/python/pants/fs/BUILD                                                                                       | 1 -
 src/python/pants/goal/BUILD                                                                                     | 1 -
 src/python/pants/help/BUILD                                                                                     | 1 -
 src/python/pants/invalidation/BUILD                                                                             | 1 -
 src/python/pants/ivy/BUILD                                                                                      | 1 -
 src/python/pants/java/distribution/BUILD                                                                        | 1 -
 src/python/pants/logging/BUILD                                                                                  | 1 -
 src/python/pants/net/BUILD                                                                                      | 1 -
 src/python/pants/option/BUILD                                                                                   | 1 -
 src/python/pants/process/BUILD                                                                                  | 1 -
 src/python/pants/reporting/BUILD                                                                                | 1 -
 src/python/pants/scm/BUILD                                                                                      | 1 -
 src/python/pants/source/BUILD                                                                                   | 1 -
 src/python/pants/stats/BUILD                                                                                    | 1 -
 src/python/pants/subsystem/BUILD                                                                                | 1 -
 src/python/pants/task/BUILD                                                                                     | 1 -
 src/scala/org/pantsbuild/zinc/BUILD                                                                             | 1 -
 src/scala/org/pantsbuild/zinc/cache/BUILD                                                                       | 1 -
 src/scala/org/pantsbuild/zinc/logging/BUILD                                                                     | 1 -
 src/scala/sbt/compiler/javac/BUILD                                                                              | 1 -
 src/scala/sbt/inc/BUILD                                                                                         | 1 -
 testprojects/3rdparty/checkstyle/BUILD                                                                          | 9 +++++----
 testprojects/3rdparty/managed/BUILD                                                                             | 2 +-
 testprojects/maven_layout/junit_resource_collision/BUILD                                                        | 2 +-
 testprojects/maven_layout/junit_resource_collision/onedir/src/test/java/BUILD                                   | 4 ++--
 testprojects/maven_layout/junit_resource_collision/onedir/src/test/resources/BUILD                              | 4 ++--
 testprojects/maven_layout/junit_resource_collision/twodir/src/test/java/BUILD                                   | 4 ++--
 testprojects/maven_layout/junit_resource_collision/twodir/src/test/resources/BUILD                              | 4 ++--
 testprojects/maven_layout/maven_and_pants/src/main/java/org/pantsbuild/example/BUILD                            | 2 +-
 testprojects/maven_layout/resource_collision/example_a/src/main/java/org/pantsbuild/duplicateres/examplea/BUILD | 2 +-
 testprojects/maven_layout/resource_collision/example_a/src/main/resources/BUILD                                 | 2 +-
 testprojects/maven_layout/resource_collision/example_a/src/test/java/org/pantsbuild/duplicateres/examplea/BUILD | 1 -
 testprojects/maven_layout/resource_collision/example_b/src/main/java/org/pantsbuild/duplicateres/exampleb/BUILD | 2 +-
 testprojects/maven_layout/resource_collision/example_b/src/main/resources/BUILD                                 | 2 +-
 testprojects/maven_layout/resource_collision/example_b/src/test/java/org/pantsbuild/duplicateres/exampleb/BUILD | 1 -
 testprojects/maven_layout/resource_collision/example_c/src/main/java/org/pantsbuild/duplicateres/examplec/BUILD | 2 +-
 testprojects/maven_layout/resource_collision/example_c/src/main/resources/BUILD                                 | 2 +-
 testprojects/maven_layout/resource_collision/example_c/src/test/java/org/pantsbuild/duplicateres/examplec/BUILD | 1 -
 testprojects/maven_layout/resource_collision/lib/src/main/java/org/pantsbuild/duplicateres/lib/BUILD            | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/annotation/main/BUILD                                          | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/annotation/processor/BUILD                                     | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/annotation/processorwithdep/hellomaker/BUILD                   | 1 -
 testprojects/src/java/org/pantsbuild/testproject/annotation/processorwithdep/main/BUILD                         | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/annotation/processorwithdep/processor/BUILD                    | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/bench/BUILD                                                    | 9 +++++----
 testprojects/src/java/org/pantsbuild/testproject/bundle/BUILD                                                   | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/cwdexample/BUILD                                               | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/deployexcludes/BUILD                                           | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/idearesourcesonly/code/BUILD                                   | 1 -
 testprojects/src/java/org/pantsbuild/testproject/idearesourcesonly/resources_only/BUILD                         | 1 -
 testprojects/src/java/org/pantsbuild/testproject/inccompile/libwithjettydep/BUILD                               | 1 -
 testprojects/src/java/org/pantsbuild/testproject/inccompile/libwithjettyserver/BUILD                            | 1 -
 testprojects/src/java/org/pantsbuild/testproject/intransitive/BUILD                                             | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/jarversionincompatibility/BUILD                                | 5 ++---
 testprojects/src/java/org/pantsbuild/testproject/javadepsonscala/BUILD                                          | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/javasources/BUILD                                              | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/junit/failing/tests/org/pantsbuild/tmp/tests/BUILD             | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/junit/mixed/tests/org/pantsbuild/tmp/tests/BUILD               | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/jvmprepcommand/BUILD                                           | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missing_sources/BUILD                                          | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missingdepswhitelist/BUILD                                     | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missingdepswhitelist2/BUILD                                    | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missingdirectdepswhitelist/BUILD                               | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missingdirectdepswhitelist2/BUILD                              | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/missingjardepswhitelist/BUILD                                  | 1 -
 testprojects/src/java/org/pantsbuild/testproject/missingjardepswhitelist2/BUILD                                 | 1 -
 testprojects/src/java/org/pantsbuild/testproject/nocache/BUILD                                                  | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/packageinfo/BUILD                                              | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/printversion/BUILD                                             | 4 ++--
 testprojects/src/java/org/pantsbuild/testproject/proto-ordering/BUILD                                           | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet/BUILD                                      | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/publish/hello/main/BUILD                                       | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/shading/BUILD                                                  | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/shadingdep/BUILD                                               | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/shadingdep/otherpackage/BUILD                                  | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/shadingdep/subpackage/BUILD                                    | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/targetlevels/java6/BUILD                                       | 4 ++--
 testprojects/src/java/org/pantsbuild/testproject/targetlevels/java7/BUILD                                       | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/targetlevels/java7on6/BUILD                                    | 4 ++--
 testprojects/src/java/org/pantsbuild/testproject/targetlevels/java8/BUILD                                       | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/targetlevels/unspecified/BUILD                                 | 4 ++--
 testprojects/src/java/org/pantsbuild/testproject/thriftdeptest/BUILD                                            | 1 -
 testprojects/src/java/org/pantsbuild/testproject/unicode/cucumber/BUILD                                         | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/unicode/main/BUILD                                             | 2 +-
 testprojects/src/java/org/pantsbuild/testproject/utf8proto/BUILD                                                | 2 +-
 testprojects/src/protobuf/org/pantsbuild/testproject/distance/BUILD                                             | 2 +-
 testprojects/src/protobuf/org/pantsbuild/testproject/proto-ordering/a/BUILD                                     | 2 +-
 testprojects/src/protobuf/org/pantsbuild/testproject/proto-ordering/b/BUILD                                     | 2 +-
 testprojects/src/protobuf/org/pantsbuild/testproject/utf8proto/BUILD                                            | 2 +-
 testprojects/src/python/sources/BUILD                                                                           | 2 +-
 testprojects/src/resources/org/pantsbuild/testproject/ordering/BUILD                                            | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/badscalastyle/BUILD                                           | 4 ++--
 testprojects/src/scala/org/pantsbuild/testproject/compilation_failure/BUILD                                     | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/custom_scala_platform/BUILD                                   | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/emptyscala/BUILD                                              | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/javadepsonscala/BUILD                                         | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/javasources/BUILD                                             | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers/BUILD                                     | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/publish/hello/welcome/BUILD                                   | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/scalac/plugin/BUILD                                           | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/scaladepsonboth/BUILD                                         | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/thriftdeptest/BUILD                                           | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/unicode/BUILD                                                 | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/unicode/shapeless/BUILD                                       | 2 +-
 testprojects/src/scala/org/pantsbuild/testproject/unicode/unicodedep/consumer/BUILD                             | 1 -
 testprojects/src/scala/org/pantsbuild/testproject/unicode/unicodedep/provider/BUILD                             | 1 -
 testprojects/tests/java/org/pantsbuild/testproject/annotation/BUILD                                             | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/cucumber/BUILD                                               | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/cwdexample/BUILD                                             | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/empty/BUILD                                                  | 1 -
 testprojects/tests/java/org/pantsbuild/testproject/htmlreport/BUILD                                             | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/idearesourcesonly/code/BUILD                                 | 1 -
 testprojects/tests/java/org/pantsbuild/testproject/idearesourcesonly/resources_only/BUILD                       | 1 -
 testprojects/tests/java/org/pantsbuild/testproject/ivyclassifier/BUILD                                          | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/matcher/BUILD                                                | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/parallel/BUILD                                               | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/parallelclassesandmethods/BUILD                              | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/parallelmethods/BUILD                                        | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/testjvms/BUILD                                               | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/unicode/cucumber/BUILD                                       | 2 +-
 testprojects/tests/java/org/pantsbuild/testproject/workdirs/onedir/BUILD                                        | 2 +-
 testprojects/tests/python/pants/constants_only/BUILD                                                            | 1 -
 testprojects/tests/resources/org/pantsbuild/testproject/cucumber/BUILD                                          | 2 +-
 testprojects/tests/resources/org/pantsbuild/testproject/ivyclassifier/BUILD                                     | 1 -
 testprojects/tests/scala/org/pantsbuild/testproject/cp-directories/BUILD                                        | 1 -
 tests/java/org/pantsbuild/args4j/BUILD                                                                          | 1 -
 tests/java/org/pantsbuild/testing/BUILD                                                                         | 1 -
 tests/java/org/pantsbuild/tools/jar/BUILD                                                                       | 1 -
 tests/python/pants_test/backend/jvm/tasks/reports/BUILD                                                         | 1 -
 tests/python/pants_test/backend/jvm/zinc/BUILD                                                                  | 1 -
 tests/python/pants_test/build_graph/BUILD                                                                       | 1 -
 tests/python/pants_test/engine/BUILD                                                                            | 1 -
 tests/python/pants_test/fs/BUILD                                                                                | 1 -
 tests/python/pants_test/java/distribution/BUILD                                                                 | 1 -
 tests/python/pants_test/logging/BUILD                                                                           | 1 -
 tests/python/pants_test/net/http/BUILD                                                                          | 1 -
 tests/python/pants_test/option/util/BUILD                                                                       | 1 -
 tests/python/pants_test/process/BUILD                                                                           | 1 -
 tests/python/pants_test/reporting/BUILD                                                                         | 1 -
 tests/python/pants_test/stats/BUILD                                                                             | 1 -
 tests/python/pants_test/subsystem/BUILD                                                                         | 1 -
 tests/python/pants_test/task/BUILD                                                                              | 1 -
 tests/resources/org/pantsbuild/tools/jar/BUILD                                                                  | 1 -
 tests/scala/org/pantsbuild/zinc/BUILD                                                                           | 2 +-
 tests/scala/org/pantsbuild/zinc/logging/BUILD                                                                   | 2 +-
 zinc/BUILD                                                                                                      | 1 -
 252 files changed, 151 insertions(+), 270 deletions(-)

Brought to you almost completely by sed and bash:

find . -name "BUILD*" | \
xargs grep -E "name\s*=" | \
sed -r -e "s|((.*/)?([^/]+)/BUILD[^:]*):.*name\s*=\s*['\"]([^'\"]+)['\"].*|\1 \3 \4|" | \
while read file dir name
do
  [ "$dir" == "$name" ] && echo "$file $name"
done | \
sort -u | \
while read file name
do
  sed -ri \
    -e "s|\(\s*name\s*=\s*['\"]$name['\"]\s*,\s*|(|" \
    -e "/name\s*=\s*['\"]$name['\"]/d" $file
done

For posterity, the 1 code (non-BUILD) change is here:
https://rbcommons.com/s/twitter/r/4287/diff/1?page=5#98

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

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Stu Hood
John Sirois
John Sirois
Benjy Weinberger
John Sirois
Benjy Weinberger
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Change Summary:

Now on master:

git log -1 origin/master
commit cace0c4600348a39949766d6afc35ef8866c58e4
Author: John Sirois <john.sirois@gmail.com>
Date:   Fri Oct 7 22:01:22 2016 -0600

    Leverage default targets throughout pants BUILDs.
    
    Add support for the default name protocol to managed_jar_dependencies to
    support this cleanup sweep.
    
    Testing Done:
    Brought to you almost completely by sed and bash:
    ```
    find . -name "BUILD*" | \
    xargs grep -E "name\s*=" | \
    sed -r -e "s|((.*/)?([^/]+)/BUILD[^:]*):.*name\s*=\s*['\"]([^'\"]+)['\"].*|\1 \3 \4|" | \
    while read file dir name
    do
      [ "$dir" == "$name" ] && echo "$file $name"
    done | \
    sort -u | \
    while read file name
    do
      sed -ri \
        -e "s|(\s*name\s*=\s*['\"]$name['\"]\s*,\s*|(|" \
        -e "/name\s*=\s*['\"]$name['\"]/d" $file
    done
    ```
    
    For posterity, the 1 code (non-BUILD) change is here:
      https://rbcommons.com/s/twitter/r/4287/diff/1?page=5#98
    
    CI went green here:
      https://travis-ci.org/pantsbuild/pants/builds/165928657
    
    Bugs closed: 3936
    
    Reviewed at https://rbcommons.com/s/twitter/r/4287/
Loading...