Mercurial > hg > graal-compiler
diff mx/commands.py @ 5707:e149c0e252e0
generated jpg for link to svg version of dependency to accommodate Internet Explorer
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 Jun 2012 18:21:49 +0200 |
parents | 6f2ccb483d96 |
children | 1c7852e6a39a |
line wrap: on
line diff
--- a/mx/commands.py Wed Jun 27 18:06:03 2012 +0200 +++ b/mx/commands.py Wed Jun 27 18:21:49 2012 +0200 @@ -1103,12 +1103,13 @@ _, tmp = tempfile.mkstemp() try: svg = join(args.base, 'all', 'modules.svg') + jpg = join(args.base, 'all', 'modules.jpg') with open(tmp, 'w') as fp: print >> fp, 'digraph projects {' print >> fp, 'rankdir=BT;' print >> fp, 'size = "13,13";' print >> fp, 'node [shape=rect, fontcolor="blue"];' - print >> fp, 'edge [color="green"];' + #print >> fp, 'edge [color="green"];' for p in mx.projects(): print >> fp, '"' + p.name + '" [URL = "../' + p.name + '/javadoc/index.html", target = "_top"]' for dep in p.canonical_deps(): @@ -1122,7 +1123,7 @@ print >> fp, '{ rank = same; "' + '"; "'.join(names) + '"; }' print >> fp, '}' - mx.run(['dot', '-Tsvg', '-o' + svg, tmp]) + mx.run(['dot', '-Tsvg', '-o' + svg, '-Tjpg', '-o' + jpg, tmp]) finally: os.remove(tmp)