mirror of https://github.com/apache/lucene.git
allow ant 1.9.x as well
This commit is contained in:
parent
b134102a9f
commit
ca1ce0b255
|
@ -218,7 +218,7 @@ def check_cmdline_tools(): # Fail fast if there are cmdline tool problems
|
||||||
if os.system('git --version >/dev/null 2>/dev/null'):
|
if os.system('git --version >/dev/null 2>/dev/null'):
|
||||||
raise RuntimeError('"git --version" returned a non-zero exit code.')
|
raise RuntimeError('"git --version" returned a non-zero exit code.')
|
||||||
antVersion = os.popen('ant -version').read().strip()
|
antVersion = os.popen('ant -version').read().strip()
|
||||||
if not antVersion.startswith('Apache Ant(TM) version 1.8'):
|
if not antVersion.startswith('Apache Ant(TM) version 1.8') and not antVersion.startswith('Apache Ant(TM) version 1.9'):
|
||||||
raise RuntimeError('ant version is not 1.8.X: "%s"' % antVersion)
|
raise RuntimeError('ant version is not 1.8.X: "%s"' % antVersion)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue