Mercurial > hg > graal-jvmci-8
changeset 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 |
files | graal/overview.html mx/commands.py |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/overview.html Wed Jun 27 18:06:03 2012 +0200 +++ b/graal/overview.html Wed Jun 27 18:21:49 2012 +0200 @@ -30,7 +30,7 @@ </head> <body> -<a href="modules.svg" title="Click to enlarge"><img src="modules.svg" width="400"/></a> +<a href="modules.svg" title="Click to enlarge"><img src="modules.jpg" width="400"/></a> <p> This document is the unified Javadoc for the Graal code base. The module dependency graph is shown above.
--- 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)