Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2017-04-13 05:14:55 +0000
committerDavid Pursehouse2017-04-13 05:14:55 +0000
commitc80d8c59013804c5709bd873a2fec96f03dedbcc (patch)
tree4cc7ce0058c587f2cf3a4afe6eeb9bc7c9d2515c /org.eclipse.jgit
parentfe5437e96b91222e30d9105e7bab490fd68c2d52 (diff)
downloadjgit-c80d8c59013804c5709bd873a2fec96f03dedbcc.tar.gz
jgit-c80d8c59013804c5709bd873a2fec96f03dedbcc.tar.xz
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')
-rw-r--r--org.eclipse.jgit/BUILD2
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,
)

Back to the top