summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/BUILD
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.pgm/BUILD
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.pgm/BUILD')
-rw-r--r--org.eclipse.jgit.pgm/BUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/BUILD b/org.eclipse.jgit.pgm/BUILD
index 6d3279031e..07922687e3 100644
--- a/org.eclipse.jgit.pgm/BUILD
+++ b/org.eclipse.jgit.pgm/BUILD
@@ -1,6 +1,6 @@
java_library(
name = "pgm",
- srcs = glob(["src/**"]),
+ srcs = glob(["src/**/*.java"]),
resource_strip_prefix = "org.eclipse.jgit.pgm/resources",
resources = glob(["resources/**"]),
visibility = ["//visibility:public"],