Allow to create javadocs for multiple packages

Change-Id: Ia3de0458603dbe14f510b2edadf6ea44406b820e
This commit is contained in:
David Ostrovsky
2014-10-22 01:22:23 +02:00
parent 5545867e43
commit ec387625e7
4 changed files with 6 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ java_sources(
java_doc(
name = 'extension-api-javadoc',
title = 'Gerrit Review Extension API Documentation',
pkg = 'com.google.gerrit.extensions',
pkgs = ['com.google.gerrit.extensions'],
paths = ['src/main/java'],
srcs = SRCS,
deps = [

View File

@@ -56,7 +56,7 @@ java_binary(
java_doc(
name = 'plugin-api-javadoc',
title = 'Gerrit Review Plugin API Documentation',
pkg = 'com.google.gerrit',
pkgs = ['com.google.gerrit'],
paths = [n for n in SRCS],
srcs = glob([n + '**/*.java' for n in SRCS]),
deps = [

View File

@@ -50,7 +50,7 @@ java_library(
java_doc(
name = 'gwtui-api-javadoc',
title = 'Gerrit Review GWT Extension API Documentation',
pkg = 'com.google.gerrit',
pkgs = ['com.google.gerrit'],
paths = ['src/main/java'] + COMMON,
srcs = SRCS,
deps = DEPS + ['//gerrit-gwtui-common:client-lib2'],

View File

@@ -1,7 +1,7 @@
def java_doc(
name,
title,
pkg,
pkgs,
paths,
srcs = [],
deps = [],
@@ -24,7 +24,8 @@ def java_doc(
'-notimestamp',
'-windowtitle "' + title + '"',
'-link http://docs.oracle.com/javase/7/docs/api',
'-subpackages ' + pkg,
'-subpackages ',
':'.join(pkgs),
'-sourcepath ',
':'.join(sourcepath),
' -classpath ',