comparison mx/commands.py @ 12583:110c3faa57e9

mx: print warning if encounter a non-parsable line in jvm.cfg
author Bernhard Urban <bernhard.urban@jku.at>
date Thu, 24 Oct 2013 18:31:21 +0200
parents 0aa37fd2f33e
children 868dba721f1e
comparison
equal deleted inserted replaced
12582:a5a4a0bcd863 12583:110c3faa57e9
325 defaultVM = parts[0][1:] 325 defaultVM = parts[0][1:]
326 jvmCfgLines += ['# default VM is a copy of the unmodified ' + defaultVM + ' VM\n'] 326 jvmCfgLines += ['# default VM is a copy of the unmodified ' + defaultVM + ' VM\n']
327 jvmCfgLines += ['-original KNOWN\n'] 327 jvmCfgLines += ['-original KNOWN\n']
328 else: 328 else:
329 # skip lines which we cannot parse (e.g. '-hotspot ALIASED_TO -client') 329 # skip lines which we cannot parse (e.g. '-hotspot ALIASED_TO -client')
330 pass 330 mx.log("WARNING: skipping not parsable line \"" + line + "\"")
331 else: 331 else:
332 jvmCfgLines += [line] 332 jvmCfgLines += [line]
333 333
334 assert defaultVM is not None, 'Could not find default VM in ' + jvmCfg 334 assert defaultVM is not None, 'Could not find default VM in ' + jvmCfg
335 if mx.get_os() != 'windows': 335 if mx.get_os() != 'windows':