Bazel: Include eclipse-out directory in .bazelignore
Since [1] Bazel added support for .bazelignore, allowing to specify directories that should be ignored. We still preserve the exclusion of BUILD files in generated .classpath file to avoid Eclipse warnings in the form: The resource is a duplicate of java/BUILD \ and was not copied to the output folder [1] https://github.com/bazelbuild/bazel/issues/4888 Change-Id: I8dfd9b5701dfcc85fd51f626af448d0306b02857
This commit is contained in:
parent
e9a5dcb2f2
commit
1634d5ab5b
1
.bazelignore
Normal file
1
.bazelignore
Normal file
@ -0,0 +1 @@
|
||||
eclipse-out
|
@ -141,9 +141,8 @@ def gen_classpath(ext):
|
||||
def classpathentry(kind, path, src=None, out=None, exported=None):
|
||||
e = doc.createElement('classpathentry')
|
||||
e.setAttribute('kind', kind)
|
||||
# TODO(davido): Remove this and other exclude BUILD files hack
|
||||
# when this Bazel bug is fixed:
|
||||
# https://github.com/bazelbuild/bazel/issues/1083
|
||||
# Excluding the BUILD file, to avoid the Eclipse warnings:
|
||||
# "The resource is a duplicate of ..."
|
||||
if kind == 'src':
|
||||
e.setAttribute('excluding', '**/BUILD')
|
||||
e.setAttribute('path', path)
|
||||
|
Loading…
Reference in New Issue
Block a user