Bazel: Simplify eclipse project generation

Make Eclipse project generation in standalone build mode compatible
with gerrit tree build. This can be easily achieved, by avoiding to
consume plugin API constants and classpath_collector from the bazlets
repository, that is not known in gerrit tree build. Instead, consume
them from the location that is also known in gerrit tree build, but
route these locations to bazlets in standalone build mode.

Change-Id: I57ae0188e717c1b2c610b4222fd07613e25c740e
diff --git a/tools/bzl/classpath.bzl b/tools/bzl/classpath.bzl
new file mode 100644
index 0000000..dfcbe9c
--- /dev/null
+++ b/tools/bzl/classpath.bzl
@@ -0,0 +1,2 @@
+load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl",
+     "classpath_collector")
diff --git a/tools/bzl/plugin.bzl b/tools/bzl/plugin.bzl
index 8427958..da0d58e 100644
--- a/tools/bzl/plugin.bzl
+++ b/tools/bzl/plugin.bzl
@@ -1,2 +1,2 @@
 load("@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl",
-     "gerrit_plugin")
+     "gerrit_plugin", "PLUGIN_DEPS")
diff --git a/tools/eclipse/BUILD b/tools/eclipse/BUILD
index ba835b7..0054f21 100644
--- a/tools/eclipse/BUILD
+++ b/tools/eclipse/BUILD
@@ -1,5 +1,5 @@
-load("@com_googlesource_gerrit_bazlets//tools:commons.bzl", "PLUGIN_DEPS")
-load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector")
+load("//tools/bzl:plugin.bzl", "gerrit_plugin", "PLUGIN_DEPS")
+load("//tools/bzl:classpath.bzl", "classpath_collector")
 
 java_library(
     name = "classpath",