allow ant 1.9.x as well

This commit is contained in:
Mike McCandless 2016-08-20 04:31:14 -04:00
parent b134102a9f
commit ca1ce0b255
1 changed files with 1 additions and 1 deletions

View File

@ -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():