We need it again after the upgrade to Lucene 5.4.1.
This reverts commit 08cc835f99.
Change-Id: I1798907e5e792005e6b78fcf9bbaaf36535d711b
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			849 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			849 B
		
	
	
	
		
			Python
		
	
	
	
	
	
python_binary(
 | 
						|
  name = 'download_file',
 | 
						|
  main = 'download_file.py',
 | 
						|
  deps = [':util'],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
python_binary(
 | 
						|
  name = 'merge_jars',
 | 
						|
  main = 'merge_jars.py',
 | 
						|
  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'],
 | 
						|
)
 | 
						|
 |