Align eclipse project generation w/ high-availability
Before this change, there used to be test build failures only appearing
after running the eclipse project generation script. Aligh that script
with the one from the high-availability plugin.
Add the eclipse build generated files to .gitignore.
Change-Id: Id6d62be0ec447b9d7fb29310f045ab7d8002a97c
diff --git a/.gitignore b/.gitignore
index 72f041f..92c26ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,9 @@
+# `LC_COLLATE=C sort`
+/.apt_generated/
/.classpath
/.primary_build_tool
/.project
/.settings/
/bazel-*
+/bin/
/eclipse-out/
diff --git a/tools/eclipse/project.sh b/tools/eclipse/project.sh
index be0fd7a..9cdbc95 100755
--- a/tools/eclipse/project.sh
+++ b/tools/eclipse/project.sh
@@ -12,4 +12,7 @@
# 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 query @com_googlesource_gerrit_bazlets//tools/eclipse:project --output location | sed s/BUILD:.*//`project.py -n project-group-structure -r .
+
+path=$(bazel query @com_googlesource_gerrit_bazlets//tools/eclipse:project \
+ --output location | sed s/BUILD:.*//)
+${path}project.py -n project-group-structure -r . "$@"