tools/eclipse/project.sh: Use bazel query to find project.py

This script generates the configuration for the eclipse editor running
the "project.py" script (provided by a bazlet).

To find this "project.py", the script uses a bazel workaround that seems
to be failing.

https://github.com/bazelbuild/bazel/issues/2452#issuecomment-316895752
reports an alternative to the workaround above, using bazel query.

Remove the py_binary workaround and use bazel query directly.

Validate also that the script is called from gitiles root directory.

Bug: https://crbug.com/gerrit/10856
Change-Id: I91e47c2b1b167b38531f53a491683a3d47db9e00
2 files changed
tree: 1e5da8f229f7fcb493e39493da75088515c2bc94
  1. .bazelrc
  2. .gitignore
  3. .mailmap
  4. .settings/
  5. BUILD
  6. COPYING
  7. Documentation/
  8. README.md
  9. WORKSPACE
  10. fake_pom_deploy.xml
  11. java/
  12. javatests/
  13. lib/
  14. navbar.md
  15. resources/
  16. tools/
  17. version.bzl
README.md

Gitiles - A simple JGit repository browser

Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.

Gitiles automatically renders *.md Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.

Configuration

Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.

Bugs

Use the issue tracker at github to file bugs.

Contributing to Gitiles

Please refer to the Developer Guide.