Allow to provide URLs for docs of external classes
Thereby, javadoc can render references to other projects (e.g.: JGit classes) as proper links. Change-Id: Ie011121c0aaeef2616d1c7f795cf9b48769ac274
This commit is contained in:
parent
6773567e95
commit
eda4d91a8c
@ -7,11 +7,13 @@ def java_doc(
|
|||||||
deps = [],
|
deps = [],
|
||||||
visibility = [],
|
visibility = [],
|
||||||
do_it_wrong = False,
|
do_it_wrong = False,
|
||||||
|
external_docs = [],
|
||||||
):
|
):
|
||||||
if do_it_wrong:
|
if do_it_wrong:
|
||||||
sourcepath = paths
|
sourcepath = paths
|
||||||
else:
|
else:
|
||||||
sourcepath = ['$SRCDIR/' + n for n in paths]
|
sourcepath = ['$SRCDIR/' + n for n in paths]
|
||||||
|
external_docs.insert(0, 'http://docs.oracle.com/javase/7/docs/api')
|
||||||
genrule(
|
genrule(
|
||||||
name = name,
|
name = name,
|
||||||
cmd = ' '.join([
|
cmd = ' '.join([
|
||||||
@ -23,7 +25,7 @@ def java_doc(
|
|||||||
'-charset UTF-8',
|
'-charset UTF-8',
|
||||||
'-notimestamp',
|
'-notimestamp',
|
||||||
'-windowtitle "' + title + '"',
|
'-windowtitle "' + title + '"',
|
||||||
'-link http://docs.oracle.com/javase/7/docs/api',
|
' '.join(['-link %s' % url for url in external_docs]),
|
||||||
'-subpackages ',
|
'-subpackages ',
|
||||||
':'.join(pkgs),
|
':'.join(pkgs),
|
||||||
'-sourcepath ',
|
'-sourcepath ',
|
||||||
|
Loading…
Reference in New Issue
Block a user