comparison mxtool/mx.py @ 16539:cc30bd72a19b

mx: fix in java version parsing
author Bernhard Urban <bernhard.urban@jku.at>
date Wed, 16 Jul 2014 23:37:10 +0200
parents 4aaa97f42b92
children edf653f51521
comparison
equal deleted inserted replaced
16538:5bf37ff211bd 16539:cc30bd72a19b
1735 except subprocess.CalledProcessError as e: 1735 except subprocess.CalledProcessError as e:
1736 print e.output 1736 print e.output
1737 abort(e.returncode) 1737 abort(e.returncode)
1738 1738
1739 def _checkOutput(out): 1739 def _checkOutput(out):
1740 return 'java version' in out 1740 return 'version' in out
1741 1741
1742 # hotspot can print a warning, e.g. if there's a .hotspot_compiler file in the cwd 1742 # hotspot can print a warning, e.g. if there's a .hotspot_compiler file in the cwd
1743 output = output.split('\n') 1743 output = output.split('\n')
1744 version = None 1744 version = None
1745 for o in output: 1745 for o in output: