# HG changeset patch # User Doug Simon # Date 1340869903 -7200 # Node ID 8d31a849ca97a102084187f88c8e60c3cf807721 # Parent 24347f3b605f12de10983b7e072dc4fa42ac6eb1 make the javadoc command work when classes have not been previously compiled diff -r 24347f3b605f -r 8d31a849ca97 mxtool/mx.py --- 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 = []