Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 13244:6140eda73e6f
make launching IGV with jdk8 issue an error message (GRAAL-420)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 04 Dec 2013 16:01:14 +0100 |
parents | 6cdf3b17316d |
children | 58d8de1f384b |
comparison
equal
deleted
inserted
replaced
13243:68529068f08e | 13244:6140eda73e6f |
---|---|
1130 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') | 1130 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') |
1131 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) | 1131 mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) |
1132 | 1132 |
1133 def igv(args): | 1133 def igv(args): |
1134 """run the Ideal Graph Visualizer""" | 1134 """run the Ideal Graph Visualizer""" |
1135 if (mx.java().version >= mx.JavaVersion('1.8')) : | |
1136 mx.abort('IGV does not yet work with JDK 8. Use --java-home to specify a JDK 7 when launching the IGV') | |
1135 with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp: | 1137 with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp: |
1136 mx.logv('[Ideal Graph Visualizer log is in ' + fp.name + ']') | 1138 mx.logv('[Ideal Graph Visualizer log is in ' + fp.name + ']') |
1137 if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')): | 1139 if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')): |
1138 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') | 1140 mx.logv('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') |
1139 mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run']) | 1141 mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run']) |