summaryrefslogtreecommitdiffstats
path: root/BUCK
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2016-01-04 00:44:07 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2016-01-04 00:53:06 +0100
commit4c574b39b40be466bfe7d6aaaa011bd5a2e9023b (patch)
treeab7129e5941002b273707d80533c750ff8945d4f /BUCK
parent8d5d144530c285a32cb0da33880a9f09009ca4f9 (diff)
downloadjgit-4c574b39b40be466bfe7d6aaaa011bd5a2e9023b.tar.gz
jgit-4c574b39b40be466bfe7d6aaaa011bd5a2e9023b.zip
buck: Make :jgit_src target work in cross-cell environment
This artifact is used from unzip utility in Gerrit Code Review build toolchain and thus the file must exist on the file system. Moreover, trying to use java_binary() didn't work either, as the zip layout was wrong: all files contained 'org.eclipse.jgit/src/' prefix. Change-Id: I00e3269a7a1a6c6d1fe7e60d1bf1c69b8e57d79d Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'BUCK')
-rw-r--r--BUCK5
1 files changed, 3 insertions, 2 deletions
diff --git a/BUCK b/BUCK
index fca0e8a7f4..f19b7bdc5d 100644
--- a/BUCK
+++ b/BUCK
@@ -4,9 +4,10 @@ java_library(
visibility = ['PUBLIC'],
)
-java_library(
+genrule(
name = 'jgit_src',
- exported_deps = ['//org.eclipse.jgit:jgit_src'],
+ cmd = 'ln -s $(location //org.eclipse.jgit:jgit_src) $OUT',
+ out = 'jgit_src.zip',
visibility = ['PUBLIC'],
)