Allow to create javadocs for multiple packages
Change-Id: Ia3de0458603dbe14f510b2edadf6ea44406b820e
This commit is contained in:
@@ -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 = [
|
||||
|
@@ -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 = [
|
||||
|
@@ -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'],
|
||||
|
@@ -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 ',
|
||||
|
Reference in New Issue
Block a user