changeset 5089:206e68bb66c6

Made the IdealGraphVisualizer runnable from mx with new 'igv' command.
author Doug Simon <doug.simon@oracle.com>
date Thu, 15 Mar 2012 08:23:05 +0100
parents 74a0bbd671ba
children 0a1e5b876667
files .hgignore mx/commands.py src/share/tools/IdealGraphVisualizer/nbproject/platform.properties
diffstat 3 files changed, 22 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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]'],
--- 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
+