gerrit/tools/BUCK
David Ostrovsky 08cc835f99 Buck: Wipe out the machinery for merging JARs
Since I146fc74ed6 core-and-backward-codecs target was removed but
the toolchain that was added to merge non-generically maven JARs
was preserved. Remove it as well. We hope that we don't need it
and if yes, it would be easy to restore it again.

Change-Id: I65f7bdb39f9632e879071cdebf2083474738d333
2016-01-07 23:14:37 +01:00

46 lines
755 B
Python

python_binary(
name = 'download_file',
main = 'download_file.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_binary(
name = 'pack_war',
main = 'pack_war.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_library(
name = 'util',
srcs = [
'util.py',
'__init__.py'
],
visibility = ['PUBLIC'],
)
python_test(
name = 'util_test',
srcs = ['util_test.py'],
deps = [':util'],
visibility = ['PUBLIC'],
)
def shquote(s):
return s.replace("'", "'\\''")
def os_path():
from os import environ
return environ.get('PATH')
genrule(
name = 'buck',
cmd = 'echo buck=`which buck`>$OUT;' +
("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
out = 'buck.properties',
visibility = ['PUBLIC'],
)