comparison mx/commands.py @ 10568:070b4a3c56f3

disabled "noisy" log statements unless -v option (i.e. verbose) is specified to mx
author Doug Simon <doug.simon@oracle.com>
date Fri, 28 Jun 2013 11:02:37 +0200
parents 2b95d5b1958b
children 2f80624df8a2
comparison
equal deleted inserted replaced
10567:7cd21876c116 10568:070b4a3c56f3
493 493
494 for build in builds: 494 for build in builds:
495 if build == 'ide-build-target': 495 if build == 'ide-build-target':
496 build = os.environ.get('IDE_BUILD_TARGET', 'product') 496 build = os.environ.get('IDE_BUILD_TARGET', 'product')
497 if len(build) == 0: 497 if len(build) == 0:
498 mx.log('[skipping build from IDE as IDE_BUILD_TARGET environment variable is ""]') 498 mx.logv('[skipping build from IDE as IDE_BUILD_TARGET environment variable is ""]')
499 continue 499 continue
500 500
501 jdk = _jdk(build, create=True) 501 jdk = _jdk(build, create=True)
502 502
503 if vm == 'original': 503 if vm == 'original':
534 if len(f) != 0 and os.path.getmtime(f) > timestamp: 534 if len(f) != 0 and os.path.getmtime(f) > timestamp:
535 mustBuild = True 535 mustBuild = True
536 break 536 break
537 537
538 if not mustBuild: 538 if not mustBuild:
539 mx.log('[all files in src and make directories are older than ' + timestampFile[len(_graal_home) + 1:] + ' - skipping native build]') 539 mx.logv('[all files in src and make directories are older than ' + timestampFile[len(_graal_home) + 1:] + ' - skipping native build]')
540 continue 540 continue
541 541
542 if platform.system() == 'Windows': 542 if platform.system() == 'Windows':
543 compilelogfile = _graal_home + '/graalCompile.log' 543 compilelogfile = _graal_home + '/graalCompile.log'
544 mksHome = mx.get_env('MKS_HOME', 'C:\\cygwin\\bin') 544 mksHome = mx.get_env('MKS_HOME', 'C:\\cygwin\\bin')
1032 dacapo(['100', 'eclipse', '-esa']) 1032 dacapo(['100', 'eclipse', '-esa'])
1033 1033
1034 def gv(args): 1034 def gv(args):
1035 """run the Graal Visualizer""" 1035 """run the Graal Visualizer"""
1036 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: 1036 with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp:
1037 mx.log('[Graal Visualizer log is in ' + fp.name + ']') 1037 mx.logv('[Graal Visualizer log is in ' + fp.name + ']')
1038 if not exists(join(_graal_home, 'visualizer', 'build.xml')): 1038 if not exists(join(_graal_home, 'visualizer', 'build.xml')):
1039 mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') 1039 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]')
1040 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) 1040 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run'])
1041 1041
1042 def igv(args): 1042 def igv(args):
1043 """run the Ideal Graph Visualizer""" 1043 """run the Ideal Graph Visualizer"""
1044 with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp: 1044 with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp:
1045 mx.log('[Ideal Graph Visualizer log is in ' + fp.name + ']') 1045 mx.logv('[Ideal Graph Visualizer log is in ' + fp.name + ']')
1046 if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')): 1046 if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')):
1047 mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') 1047 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]')
1048 mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run']) 1048 mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run'])
1049 1049
1050 def bench(args): 1050 def bench(args):
1051 """run benchmarks and parse their output for results 1051 """run benchmarks and parse their output for results
1052 1052