Mercurial > hg > truffle
diff mxtool/mx.py @ 5706:6f2ccb483d96
added overview.html for each project and integrated it into the generated 'mx site' command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 Jun 2012 18:06:03 +0200 |
parents | d0a6e25de770 |
children | 24347f3b605f |
line wrap: on
line diff
--- a/mxtool/mx.py Wed Jun 27 15:40:03 2012 +0200 +++ b/mxtool/mx.py Wed Jun 27 18:06:03 2012 +0200 @@ -2038,8 +2038,21 @@ links.append(os.path.relpath(depOut, out)) cp = classpath(p.name, includeSelf=True) sp = os.pathsep.join(p.source_dirs()) + overviewFile = join(p.dir, 'overview.html') + overview = [] + if exists(overviewFile): + overview = ['-overview', overviewFile] log('Generating {2} for {0} in {1}'.format(p.name, out, docDir)) - run([java().javadoc, memory, '-classpath', cp, '-quiet', '-d', out, '-sourcepath', sp] + links + extraArgs + list(pkgs)) + run([java().javadoc, memory, + '-windowtitle', p.name + ' javadoc', + '-classpath', cp, + '-quiet', + '-d', out, + '-sourcepath', sp] + + links + + extraArgs + + overview + + list(pkgs)) log('Generated {2} for {0} in {1}'.format(p.name, out, docDir)) else: pkgs = set()