summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ui
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2017-04-13 14:14:55 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2017-04-13 14:14:55 +0900
commitc80d8c59013804c5709bd873a2fec96f03dedbcc (patch)
tree4cc7ce0058c587f2cf3a4afe6eeb9bc7c9d2515c /org.eclipse.jgit.ui
parentfe5437e96b91222e30d9105e7bab490fd68c2d52 (diff)
downloadjgit-c80d8c59013804c5709bd873a2fec96f03dedbcc.tar.gz
jgit-c80d8c59013804c5709bd873a2fec96f03dedbcc.zip
Bazel: Restrict src globs to Java source files
Generating the src list with an unrestricted wildcard causes all files in the source tree to be included. This results in junk files such as .orig (generated during merge conflict resolution) to be included, which causes in a build error: in srcs attribute of java_library rule //org.eclipse.jgit:jgit: file '//org.eclipse.jgit:src/org/eclipse/jgit/gitrepo/RepoCommand.java.orig' is misplaced here (expected .java, .srcjar or .properties). Modify the globs to only include Java source files. Change-Id: Iaef3db33ac71d71047cd28acb0378e15cb09ece9 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.ui')
-rw-r--r--org.eclipse.jgit.ui/BUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ui/BUILD b/org.eclipse.jgit.ui/BUILD
index 85ae5c0847..eec4a384db 100644
--- a/org.eclipse.jgit.ui/BUILD
+++ b/org.eclipse.jgit.ui/BUILD
@@ -2,7 +2,7 @@ package(default_visibility = ["//visibility:public"])
java_library(
name = "ui",
- srcs = glob(["src/**"]),
+ srcs = glob(["src/**/*.java"]),
resource_strip_prefix = "org.eclipse.jgit.ui/resources",
resources = glob(["resources/**"]),
deps = ["//org.eclipse.jgit:jgit"],