# HG changeset patch # User Doug Simon # Date 1331796185 -3600 # Node ID 206e68bb66c6770e8ece8f4b0235b27236f7634a # Parent 74a0bbd671ba281c95298e626764b38cb78e9d15 Made the IdealGraphVisualizer runnable from mx with new 'igv' command. diff -r 74a0bbd671ba -r 206e68bb66c6 .hgignore --- a/.hgignore Wed Mar 14 21:54:42 2012 +0100 +++ b/.hgignore Thu Mar 15 08:23:05 2012 +0100 @@ -50,5 +50,6 @@ ^visualizer/build/ ^visualizer/dist/ ^visualizer/nbplatform/ +^src/share/tools/IdealGraphVisualizer/nbplatform/ ^.hgtip .DS_Store diff -r 74a0bbd671ba -r 206e68bb66c6 mx/commands.py --- a/mx/commands.py Wed Mar 14 21:54:42 2012 +0100 +++ b/mx/commands.py Thu Mar 15 08:23:05 2012 +0100 @@ -751,9 +751,19 @@ def gv(args): """run the Graal Visualizer""" with open(join(_graal_home, '.graal_visualizer.log'), 'w') as fp: - mx.log('[Graal Visualizer output is in ' + fp.name + ']') + mx.log('[Graal Visualizer log is in ' + fp.name + ']') + if not exists(join(_graal_home, 'visualizer', 'build.xml')): + mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-l', fp.name, 'run']) +def igv(args): + """run the Ideal Graph Visualizer""" + with open(join(_graal_home, '.ideal_graph_visualizer.log'), 'w') as fp: + mx.log('[Ideal Graph Visualizer log is in ' + fp.name + ']') + if not exists(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'nbplatform')): + mx.log('[This initial execution may take a while as the NetBeans platform needs to be downloaded]') + mx.run(['ant', '-f', join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml'), '-l', fp.name, 'run']) + def bench(args): """run benchmarks and parse their output for results @@ -876,6 +886,7 @@ 'buildvms': [buildvms, '[-options]'], 'clean': [clean, ''], 'hsdis': [hsdis, '[att]'], + 'igv' : [igv, ''], 'intro': [intro, ''], 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], diff -r 74a0bbd671ba -r 206e68bb66c6 src/share/tools/IdealGraphVisualizer/nbproject/platform.properties --- a/src/share/tools/IdealGraphVisualizer/nbproject/platform.properties Wed Mar 14 21:54:42 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/nbproject/platform.properties Thu Mar 15 08:23:05 2012 +0100 @@ -1,3 +1,11 @@ +nbplatform.active=default +bootstrap.url=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/netbeans/harness/tasks.jar +autoupdate.catalog.url=http://updates.netbeans.org/netbeans/updates/7.1.1/uc/final/distribution/catalog.xml.gz +suite.dir=${basedir} +nbplatform.active.dir=${suite.dir}/nbplatform +nbplatform.default.netbeans.dest.dir=${suite.dir}/nbplatform +nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness +harness.dir=${nbplatform.active.dir}/harness cluster.path=\ ${nbplatform.active.dir}/ide:\ ${nbplatform.active.dir}/platform @@ -201,4 +209,4 @@ # org.netbeans.core.netigso,\ # org.netbeans.libs.felix,\ # org.netbeans.libs.osgi,\ -nbplatform.active=default +