浏览代码

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>
tags/v4.2.0.201601211800-r
David Ostrovsky 8 年前
父节点
当前提交
4c574b39b4
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      BUCK

+ 3
- 2
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'],
)


正在加载...
取消
保存