Allow to create javadocs for multiple packages
Change-Id: Ia3de0458603dbe14f510b2edadf6ea44406b820e
This commit is contained in:
@@ -47,7 +47,7 @@ java_sources(
|
|||||||
java_doc(
|
java_doc(
|
||||||
name = 'extension-api-javadoc',
|
name = 'extension-api-javadoc',
|
||||||
title = 'Gerrit Review Extension API Documentation',
|
title = 'Gerrit Review Extension API Documentation',
|
||||||
pkg = 'com.google.gerrit.extensions',
|
pkgs = ['com.google.gerrit.extensions'],
|
||||||
paths = ['src/main/java'],
|
paths = ['src/main/java'],
|
||||||
srcs = SRCS,
|
srcs = SRCS,
|
||||||
deps = [
|
deps = [
|
||||||
|
@@ -56,7 +56,7 @@ java_binary(
|
|||||||
java_doc(
|
java_doc(
|
||||||
name = 'plugin-api-javadoc',
|
name = 'plugin-api-javadoc',
|
||||||
title = 'Gerrit Review Plugin API Documentation',
|
title = 'Gerrit Review Plugin API Documentation',
|
||||||
pkg = 'com.google.gerrit',
|
pkgs = ['com.google.gerrit'],
|
||||||
paths = [n for n in SRCS],
|
paths = [n for n in SRCS],
|
||||||
srcs = glob([n + '**/*.java' for n in SRCS]),
|
srcs = glob([n + '**/*.java' for n in SRCS]),
|
||||||
deps = [
|
deps = [
|
||||||
|
@@ -50,7 +50,7 @@ java_library(
|
|||||||
java_doc(
|
java_doc(
|
||||||
name = 'gwtui-api-javadoc',
|
name = 'gwtui-api-javadoc',
|
||||||
title = 'Gerrit Review GWT Extension API Documentation',
|
title = 'Gerrit Review GWT Extension API Documentation',
|
||||||
pkg = 'com.google.gerrit',
|
pkgs = ['com.google.gerrit'],
|
||||||
paths = ['src/main/java'] + COMMON,
|
paths = ['src/main/java'] + COMMON,
|
||||||
srcs = SRCS,
|
srcs = SRCS,
|
||||||
deps = DEPS + ['//gerrit-gwtui-common:client-lib2'],
|
deps = DEPS + ['//gerrit-gwtui-common:client-lib2'],
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
def java_doc(
|
def java_doc(
|
||||||
name,
|
name,
|
||||||
title,
|
title,
|
||||||
pkg,
|
pkgs,
|
||||||
paths,
|
paths,
|
||||||
srcs = [],
|
srcs = [],
|
||||||
deps = [],
|
deps = [],
|
||||||
@@ -24,7 +24,8 @@ def java_doc(
|
|||||||
'-notimestamp',
|
'-notimestamp',
|
||||||
'-windowtitle "' + title + '"',
|
'-windowtitle "' + title + '"',
|
||||||
'-link http://docs.oracle.com/javase/7/docs/api',
|
'-link http://docs.oracle.com/javase/7/docs/api',
|
||||||
'-subpackages ' + pkg,
|
'-subpackages ',
|
||||||
|
':'.join(pkgs),
|
||||||
'-sourcepath ',
|
'-sourcepath ',
|
||||||
':'.join(sourcepath),
|
':'.join(sourcepath),
|
||||||
' -classpath ',
|
' -classpath ',
|
||||||
|
Reference in New Issue
Block a user