Mercurial > hg > truffle
changeset 5710:8d31a849ca97
make the javadoc command work when classes have not been previously compiled
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 Jun 2012 09:51:43 +0200 |
parents | 24347f3b605f |
children | 4d7175cf3526 |
files | mxtool/mx.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/mx.py Wed Jun 27 19:09:23 2012 +0100 +++ b/mxtool/mx.py Thu Jun 28 09:51:43 2012 +0200 @@ -2028,6 +2028,9 @@ if not args.unified: for p in projects: + # The project must be built to ensure javadoc can find class files for all referenced classes + build(['--no-native', '--projects', p.name]) + pkgs = find_packages(p.source_dirs(), set()) deps = p.all_deps([], includeLibs=False, includeSelf=False) links = ['-link', 'http://docs.oracle.com/javase/' + str(p.javaCompliance.value) + '/docs/api/'] @@ -2055,6 +2058,9 @@ list(pkgs)) log('Generated {2} for {0} in {1}'.format(p.name, out, docDir)) else: + # The projects must be built to ensure javadoc can find class files for all referenced classes + build(['--no-native']) + pkgs = set() sp = [] names = []