Simplify the way to retrieve project.py script from bazlets
This also fix the tests execution that was no longer working in-tree
mode.
Change-Id: I662239250d8cfb0e964f1c86b4b3fc8ba986235c
diff --git a/tools/eclipse/BUILD b/tools/eclipse/BUILD
index 7254998..a70caed 100644
--- a/tools/eclipse/BUILD
+++ b/tools/eclipse/BUILD
@@ -1,6 +1,5 @@
load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS")
load("//tools/bzl:classpath.bzl", "classpath_collector")
-load("@com_googlesource_gerrit_bazlets//tools:py_binary_path.bzl", "py_binary_path")
java_library(
name = "classpath",
@@ -23,8 +22,3 @@
"//:high-availability__plugin",
],
)
-
-py_binary_path(
- name = "project.py",
- py_binary_label = "@com_googlesource_gerrit_bazlets//tools/eclipse:project",
-)
diff --git a/tools/eclipse/project.sh b/tools/eclipse/project.sh
index 56c2ea9..66d75fb 100755
--- a/tools/eclipse/project.sh
+++ b/tools/eclipse/project.sh
@@ -12,6 +12,4 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-bazel build tools/eclipse:project.py
-`bazel info output_base`/`cat bazel-bin/tools/eclipse/project.py.txt` -n high-availability -r .
+`bazel query @com_googlesource_gerrit_bazlets//tools/eclipse:project --output location | sed s/BUILD:.*//`project.py -n high-availability -r .