diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-04-13 14:14:55 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2017-04-13 14:14:55 +0900 |
commit | c80d8c59013804c5709bd873a2fec96f03dedbcc (patch) | |
tree | 4cc7ce0058c587f2cf3a4afe6eeb9bc7c9d2515c /org.eclipse.jgit/BUILD | |
parent | fe5437e96b91222e30d9105e7bab490fd68c2d52 (diff) | |
download | jgit-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/BUILD')
-rw-r--r-- | org.eclipse.jgit/BUILD | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/BUILD b/org.eclipse.jgit/BUILD index 75f4fe69c1..a8a53f2742 100644 --- a/org.eclipse.jgit/BUILD +++ b/org.eclipse.jgit/BUILD @@ -5,7 +5,7 @@ INSECURE_CIPHER_FACTORY = [ ] SRCS = glob( - ["src/**"], + ["src/**/*.java"], exclude = INSECURE_CIPHER_FACTORY, ) |