2016-03-17 19:03:53 +00:00
|
|
|
# Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
2012-09-18 18:29:16 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
default: all
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
|
|
|
# List of all possible directories for javadoc to look for sources
|
2016-10-26 14:00:26 +00:00
|
|
|
# Allow custom to overwrite.
|
|
|
|
JAVADOC_SOURCE_DIRS = \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc/* \
|
2016-12-01 08:56:28 +00:00
|
|
|
$(addsuffix /*, $(IMPORT_MODULES_SRC)) \
|
2016-03-17 19:03:53 +00:00
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \
|
|
|
|
$(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/classes \
|
|
|
|
$(JDK_TOPDIR)/src/*/share/classes \
|
|
|
|
$(HOTSPOT_TOPDIR)/src/*/share/classes \
|
|
|
|
$(LANGTOOLS_TOPDIR)/src/*/share/classes \
|
|
|
|
$(NASHORN_TOPDIR)/src/*/share/classes \
|
|
|
|
$(CORBA_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXP_TOPDIR)/src/*/share/classes \
|
|
|
|
$(JAXWS_TOPDIR)/src/*/share/classes \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/rmic/* \
|
|
|
|
$(JDK_TOPDIR)/src/*/share/doc/stub \
|
|
|
|
#
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# Should we use -Xdocrootparent? Allow custom to overwrite.
|
|
|
|
DOCROOTPARENT_FLAG = TRUE
|
2016-04-15 12:57:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# URLs
|
|
|
|
JAVADOC_BASE_URL := http://docs.oracle.com/javase/$(VERSION_SPECIFICATION)/docs
|
|
|
|
BUG_SUBMIT_URL := http://bugreport.java.com/bugreport/
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
|
|
|
# Text snippets
|
2014-07-22 04:34:29 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
FULL_COMPANY_NAME := Oracle and/or its affiliates
|
2016-11-18 14:50:43 +00:00
|
|
|
COMPANY_ADDRESS := 500 Oracle Parkway<br>Redwood Shores, CA 94065 USA
|
2016-10-26 14:00:26 +00:00
|
|
|
BUG_SUBMIT_LINE := <a href="$(BUG_SUBMIT_URL)">Submit a bug or feature</a>
|
2014-07-22 04:34:29 +00:00
|
|
|
|
2016-11-18 14:50:43 +00:00
|
|
|
COMMON_BOTTOM_TEXT := $(BUG_SUBMIT_LINE)<br> Java is a trademark or registered \
|
|
|
|
trademark of $(FULL_COMPANY_NAME) in the US and other countries.
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
CORE_BOTTOM_COPYRIGHT_URL := {@docroot}/../legal/cpyr.html
|
2016-11-22 12:44:41 +00:00
|
|
|
CORE_BOTTOM_TEXT := \
|
|
|
|
$(BUG_SUBMIT_LINE) \
|
|
|
|
<br>For further API reference and developer documentation, see \
|
|
|
|
<a href="$(JAVADOC_BASE_URL)/index.html" target="_blank">Java SE \
|
|
|
|
Documentation</a>. That documentation contains more detailed, \
|
|
|
|
developer-targeted descriptions, with conceptual overviews, definitions of \
|
|
|
|
terms, workarounds, and working code examples.
|
2014-07-22 04:34:29 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
ifeq ($(VERSION_IS_GA), true)
|
2016-11-22 12:44:41 +00:00
|
|
|
DRAFT_MARKER :=
|
|
|
|
DRAFT_WINDOW_TITLE_MARKER :=
|
|
|
|
EARLYACCESS_TOP :=
|
2016-10-26 14:00:26 +00:00
|
|
|
else
|
|
|
|
# We need a draft format when not building the GA version.
|
2016-11-22 12:44:41 +00:00
|
|
|
DRAFT_MARKER := <br><strong>DRAFT $(VERSION_STRING)</strong>
|
2016-11-18 14:50:43 +00:00
|
|
|
ifeq ($(VERSION_BUILD), 0)
|
2016-11-22 12:44:41 +00:00
|
|
|
DRAFT_WINDOW_TITLE_MARKER := $(SPACE)[ad-hoc build]
|
2016-11-18 14:50:43 +00:00
|
|
|
else
|
2016-11-22 12:44:41 +00:00
|
|
|
DRAFT_WINDOW_TITLE_MARKER := $(SPACE)[build $(VERSION_BUILD)]
|
2016-11-18 14:50:43 +00:00
|
|
|
endif
|
2016-11-22 12:44:41 +00:00
|
|
|
EARLYACCESS_TOP := \
|
2017-01-10 10:28:25 +00:00
|
|
|
<div style="background-color: $(HASH)EEEEEE"><div style="padding: 6px; \
|
2016-11-22 12:44:41 +00:00
|
|
|
margin-top: 2px; margin-bottom: 6px; margin-left: 6px; margin-right: \
|
|
|
|
6px; text-align: justify; font-size: 80%; font-family: Helvetica, Arial, \
|
|
|
|
sans-serif; font-weight: normal;">Please note that the specifications \
|
|
|
|
and other information contained herein are not final and are subject to \
|
|
|
|
change. The information is being made available to you solely for \
|
|
|
|
purpose of evaluation.</div></div>
|
2012-09-18 18:29:16 +00:00
|
|
|
endif
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2016-11-22 12:44:41 +00:00
|
|
|
# Special treatment for the core package list. All separate "small" javadoc
|
|
|
|
# invocation needs to be able to see the core package list.
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
ALL_PKG_DIRS := $(dir $(filter %.java, $(call CacheFind, \
|
|
|
|
$(wildcard $(JAVADOC_SOURCE_DIRS)))))
|
|
|
|
ALL_SRC_PREFIXES := $(addsuffix /%, $(wildcard $(JAVADOC_SOURCE_DIRS)))
|
|
|
|
ALL_PKG_DIRNAMES := $(foreach prefix, $(ALL_SRC_PREFIXES), \
|
|
|
|
$(patsubst $(prefix),%, $(filter $(prefix), $(ALL_PKG_DIRS))))
|
|
|
|
ALL_PACKAGES := $(sort $(subst /,., $(patsubst %/, %, $(ALL_PKG_DIRNAMES))))
|
|
|
|
|
|
|
|
# Core packages are all packages beginning with java, javax or org, except a few
|
|
|
|
# excludes.
|
|
|
|
JAVA_PACKAGES := $(filter java.%, $(ALL_PACKAGES))
|
|
|
|
JAVAX_PACKAGES := $(filter javax.%, $(ALL_PACKAGES))
|
|
|
|
ORG_PACKAGES := $(filter org.%, $(ALL_PACKAGES))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
# Allow custom makefile to add more excluded packages
|
|
|
|
CORE_EXCLUDED_PACKAGES += \
|
|
|
|
java.awt.dnd.peer \
|
|
|
|
java.awt.peer \
|
|
|
|
javax.smartcardio \
|
|
|
|
org.jcp.xml.dsig.internal% \
|
|
|
|
org.w3c.dom.css \
|
|
|
|
org.w3c.dom.html \
|
|
|
|
org.w3c.dom.stylesheets \
|
|
|
|
org.w3c.dom.xpath \
|
2016-12-11 20:09:13 +00:00
|
|
|
org.graalvm.compiler.% \
|
2016-11-22 12:44:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
CORE_PACKAGES := $(filter-out $(CORE_EXCLUDED_PACKAGES), \
|
|
|
|
$(JAVA_PACKAGES) $(JAVAX_PACKAGES) $(ORG_PACKAGES))
|
|
|
|
|
|
|
|
CORE_PACKAGES_LIST_DIR := $(SUPPORT_OUTPUTDIR)/docs/core-packages
|
|
|
|
CORE_PACKAGES_LIST_FILE := $(CORE_PACKAGES_LIST_DIR)/package-list
|
|
|
|
|
|
|
|
CORE_PACKAGES_VARDEPS_FILE := $(call DependOnVariable, CORE_PACKAGES, \
|
|
|
|
$(CORE_PACKAGES_LIST_FILE).vardeps)
|
|
|
|
|
|
|
|
$(CORE_PACKAGES_LIST_FILE): $(CORE_PACKAGES_VARDEPS_FILE)
|
|
|
|
$(call MakeDir, $(@D))
|
|
|
|
$(eval $(call ListPathsSafely, CORE_PACKAGES, $@))
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Support functions for SetupJavadocGeneration
|
|
|
|
|
|
|
|
# Generate the text used in the -bottom argument.
|
2016-10-26 14:00:26 +00:00
|
|
|
# Note that COPYRIGHT_YEAR is the current year (from spec.gmk)
|
|
|
|
# Arguments:
|
|
|
|
# arg 1: first copyright year
|
|
|
|
# arg 2: copyright url (optional)
|
2016-11-18 14:50:43 +00:00
|
|
|
# arg 3: free-form text snippet (optional)
|
2016-10-26 14:00:26 +00:00
|
|
|
define GenerateBottom
|
2016-12-23 21:43:21 +00:00
|
|
|
<span style="font-size:smaller">$(if $(strip $3), $(strip $3))<br> $(if \
|
2016-11-18 14:50:43 +00:00
|
|
|
$(strip $2),<a href="$(strip $2)">Copyright</a>,Copyright) \
|
|
|
|
© $(strip $1), $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME). \
|
2016-12-23 21:43:21 +00:00
|
|
|
$(COMPANY_ADDRESS). All rights reserved.</span>
|
2016-10-26 14:00:26 +00:00
|
|
|
endef
|
2014-10-31 15:23:03 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# Speed up finding by filling cache
|
|
|
|
$(eval $(call FillCacheFind, $(wildcard $(JAVADOC_SOURCE_DIRS))))
|
2014-10-31 15:23:03 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
# In order to get a specific ordering it's necessary to specify the total
|
|
|
|
# ordering of tags as the tags are otherwise ordered in order of definition.
|
|
|
|
DEFAULT_JAVADOC_TAGS := \
|
|
|
|
-tag beaninfo:X \
|
|
|
|
-tag revised:X \
|
|
|
|
-tag since.unbundled:X \
|
|
|
|
-tag spec:X \
|
|
|
|
-tag specdefault:X \
|
|
|
|
-tag Note:X \
|
|
|
|
-tag ToDo:X \
|
|
|
|
-tag 'apiNote:a:API Note:' \
|
|
|
|
-tag 'implSpec:a:Implementation Requirements:' \
|
|
|
|
-tag 'implNote:a:Implementation Note:' \
|
|
|
|
-tag param \
|
|
|
|
-tag return \
|
|
|
|
-tag throws \
|
|
|
|
-tag since \
|
|
|
|
-tag version \
|
|
|
|
-tag serialData \
|
|
|
|
-tag factory \
|
|
|
|
-tag see \
|
|
|
|
-tag 'jvms:a:See <cite>The Java™ Virtual Machine Specification</cite>:' \
|
|
|
|
-tag 'jls:a:See <cite>The Java™ Language Specification</cite>:' \
|
|
|
|
#
|
|
|
|
|
|
|
|
DEFAULT_JAVADOC_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
|
|
|
|
-serialwarn -encoding ISO-8859-1 -breakiterator --system none
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
|
|
|
# Setup make rules for running javadoc.
|
|
|
|
#
|
|
|
|
# Parameter 1 is the name of the rule. This name is used as variable prefix,
|
|
|
|
# and the targets generated are listed in a variable by that name. Note that
|
|
|
|
# the index.html file will work as a "touch file" for all the magnitude of
|
|
|
|
# files that are generated by javadoc.
|
|
|
|
#
|
|
|
|
# Remaining parameters are named arguments. These include:
|
|
|
|
# MODULES - Modules to include
|
|
|
|
# PACKAGES - Packages to include
|
|
|
|
# IS_CORE - Set to TRUE for the Core API package which needs special treatment
|
|
|
|
# API_ROOT - Where to base the documentation (jre or jdk)
|
|
|
|
# DEST_DIR - A directory relative to the API root
|
|
|
|
# OVERVIEW - Path to a html overview file
|
|
|
|
# TITLE - Default title to use for the more specific versions below
|
|
|
|
# WINDOW_TITLE - Title to use in -windowtitle. Computed from TITLE if empty.
|
|
|
|
# HEADER_TITLE - Title to use in -header. Computed from TITLE if empty.
|
|
|
|
# DOC_TITLE - Title to use in -doctitle. Computed from TITLE if empty.
|
|
|
|
# FIRST_COPYRIGHT_YEAR - First year this bundle was introduced
|
2016-11-18 14:50:43 +00:00
|
|
|
# DISABLED_DOCLINT - Doclint warnings to exclude.
|
2016-10-26 14:00:26 +00:00
|
|
|
# DOCLINT_PACKAGES - Optional -Xdoclint/package value
|
2016-11-18 14:50:43 +00:00
|
|
|
# SPLIT_INDEX - Enable -splitIndex (split index-all.html if it is too large)
|
2016-10-26 14:00:26 +00:00
|
|
|
# BOTTOM_COPYRIGHT_URL - Copyright URL to use in -bottom
|
|
|
|
# BOTTOM_TEXT - Extra text to use in -bottom
|
|
|
|
# EXTRA_TOP - Additional -top data
|
|
|
|
#
|
|
|
|
SetupJavadocGeneration = $(NamedParamsMacroTemplate)
|
|
|
|
define SetupJavadocGenerationBody
|
|
|
|
ifeq ($$($1_IS_CORE), TRUE)
|
|
|
|
$1_JAVA := $$(JAVA)
|
|
|
|
$1_OUTPUT_DIRNAME := api
|
|
|
|
else
|
|
|
|
$1_JAVA := $$(JAVA_SMALL)
|
|
|
|
$1_OUTPUT_DIRNAME := $$($1_API_ROOT)/api/$$($1_DEST_DIR)
|
|
|
|
|
2016-11-18 14:50:43 +00:00
|
|
|
# Compute a relative path to core root.
|
|
|
|
# The non-core api javadocs need to be able to access the root of the core
|
|
|
|
# api directory, so for jdk/api or jre/api to get to the core api/
|
|
|
|
# directory we would use this
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_RELATIVE_CORE_DIR := $$(call DirToDotDot, $$($1_OUTPUT_DIRNAME))/api
|
|
|
|
|
|
|
|
# We need to tell javadoc the directory in which to find the core package-list
|
|
|
|
$1_OPTIONS += -linkoffline $$($1_RELATIVE_CORE_DIR) $$(CORE_PACKAGES_LIST_DIR)
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_DEPS += $(CORE_PACKAGES_LIST_FILE)
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_OPTIONS += --add-modules $$(call CommaList, $$($1_MODULES))
|
|
|
|
|
|
|
|
ifneq ($$(LOG_LEVEL), trace)
|
|
|
|
$1_OPTIONS += -quiet
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
ifneq ($$($1_DISABLED_DOCLINT), )
|
|
|
|
# Create a string like ",-syntax,-html"
|
|
|
|
$1_DOCLINT_EXCEPTIONS := ,$$(call CommaList, $$(addprefix -, $$($1_DISABLED_DOCLINT)))
|
|
|
|
endif
|
|
|
|
$1_OPTIONS += -Xdoclint:all$$($1_DOCLINT_EXCEPTIONS)
|
|
|
|
|
|
|
|
ifneq ($$($1_DOCLINT_PACKAGES), )
|
|
|
|
$1_OPTIONS += -Xdoclint/package:$$(call CommaList, $$($1_DOCLINT_PACKAGES))
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($$($1_DOC_TITLE), )
|
|
|
|
$1_DOC_TITLE := $$($1_TITLE)
|
|
|
|
endif
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)'
|
2016-10-26 14:00:26 +00:00
|
|
|
|
|
|
|
ifeq ($$($1_WINDOW_TITLE), )
|
2016-11-18 14:50:43 +00:00
|
|
|
$1_WINDOW_TITLE := $$(strip $$(subst ™,, $$($1_TITLE)))
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)$$(DRAFT_WINDOW_TITLE_MARKER)'
|
2016-10-26 14:00:26 +00:00
|
|
|
|
|
|
|
ifeq ($$($1_HEADER_TITLE), )
|
2016-11-18 14:50:43 +00:00
|
|
|
$1_HEADER_TITLE := $$(strip $$(subst ™,, $$($1_TITLE)))
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_OPTIONS += -header '<strong>$$($1_HEADER_TITLE)</strong>$$(DRAFT_MARKER)'
|
|
|
|
|
|
|
|
ifneq ($$($1_EXTRA_TOP), )
|
|
|
|
$1_OPTIONS += -top '$$($1_EXTRA_TOP)'
|
|
|
|
endif
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-18 14:50:43 +00:00
|
|
|
ifeq ($$($1_BOTTOM_TEXT), )
|
|
|
|
$1_BOTTOM_TEXT := $(COMMON_BOTTOM_TEXT)
|
|
|
|
endif
|
2016-10-26 14:00:26 +00:00
|
|
|
$1_BOTTOM := $$(call GenerateBottom, $$($1_FIRST_COPYRIGHT_YEAR), \
|
2016-11-18 14:50:43 +00:00
|
|
|
$$($1_BOTTOM_COPYRIGHT_URL), $$($1_BOTTOM_TEXT))
|
2016-11-22 12:44:41 +00:00
|
|
|
$1_OPTIONS += -bottom '$$($1_BOTTOM)$$(DRAFT_MARKER)'
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
ifneq ($$($1_OVERVIEW), )
|
|
|
|
$1_OPTIONS += -overview $$($1_OVERVIEW)
|
|
|
|
$1_DEPS += $$($1_OVERVIEW)
|
|
|
|
endif
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
ifneq ($$($1_SPLIT_INDEX), )
|
|
|
|
$1_OPTIONS += -splitIndex
|
|
|
|
endif
|
2016-10-26 14:00:26 +00:00
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
ifneq ($$($DOCROOTPARENT_FLAG), )
|
|
|
|
$1_OPTIONS += -Xdocrootparent $(JAVADOC_BASE_URL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
$1_VARDEPS := $$($1_OPTIONS) $$($1_PACKAGES)
|
|
|
|
$1_VARDEPS_FILE := $$(call DependOnVariable, $1_VARDEPS, \
|
|
|
|
$$(SUPPORT_OUTPUTDIR)/docs/$1.vardeps)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$1_PACKAGE_DEPS := $$(call CacheFind, $$(wildcard $$(foreach p, \
|
|
|
|
$$(subst .,/,$$(strip $$($1_PACKAGES))), \
|
|
|
|
$$(addsuffix /$$p, $$(wildcard $$(JAVADOC_SOURCE_DIRS))))))
|
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
# If there are many packages, use an @-file...
|
|
|
|
ifneq ($$(word 17, $$($1_PACKAGES)), )
|
|
|
|
$1_PACKAGES_FILE := $$(SUPPORT_OUTPUTDIR)/docs/$1.packages
|
|
|
|
$1_PACKAGES_ARG := @$$($1_PACKAGES_FILE)
|
|
|
|
else
|
|
|
|
$1_PACKAGES_ARG := $$($1_PACKAGES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# The index.html which is a marker for all the output from javadoc.
|
|
|
|
$1_INDEX_FILE := $$(JAVADOC_OUTPUTDIR)/$$($1_OUTPUT_DIRNAME)/index.html
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# Rule for actually running javadoc
|
2016-11-22 12:44:41 +00:00
|
|
|
$$($1_INDEX_FILE): $$($1_VARDEPS_FILE) $$($1_PACKAGE_DEPS) $$($1_DEPS)
|
|
|
|
$$(call LogWarn, Generating Javadoc from $$(words $$($1_PACKAGES)) package(s) for $$($1_OUTPUT_DIRNAME))
|
2016-10-26 14:00:26 +00:00
|
|
|
$$(call MakeDir, $$(@D))
|
2016-11-22 12:44:41 +00:00
|
|
|
ifneq ($$($1_PACKAGES_FILE), )
|
|
|
|
$$(eval $$(call ListPathsSafely, $1_PACKAGES, $$($1_PACKAGES_FILE)))
|
2016-10-26 14:00:26 +00:00
|
|
|
endif
|
|
|
|
$$(call ExecuteWithLog, $$(SUPPORT_OUTPUTDIR)/docs/$1.javadoc, \
|
|
|
|
$$($1_JAVA) -Djava.awt.headless=true $(NEW_JAVADOC) -d $$(@D) \
|
2016-11-22 12:44:41 +00:00
|
|
|
$$(DEFAULT_JAVADOC_TAGS) $$(DEFAULT_JAVADOC_OPTIONS) \
|
|
|
|
--module-source-path $$(call PathList, $$(JAVADOC_SOURCE_DIRS)) \
|
|
|
|
$$($1_OPTIONS) $$($1_PACKAGES_ARG))
|
2016-04-15 12:57:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# The output returned will be the index.html file
|
|
|
|
$1 := $$($1_INDEX_FILE)
|
|
|
|
endef
|
2016-04-15 12:57:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, coredocs, \
|
|
|
|
MODULES := java.se.ee, \
|
|
|
|
PACKAGES := $(CORE_PACKAGES), \
|
|
|
|
IS_CORE := TRUE, \
|
|
|
|
OVERVIEW := $(JDK_TOPDIR)/src/java.base/share/classes/overview-core.html, \
|
|
|
|
WINDOW_TITLE := Java Platform SE $(VERSION_SPECIFICATION), \
|
2016-11-18 14:50:43 +00:00
|
|
|
HEADER_TITLE := Java™ Platform<br>Standard Ed. $(VERSION_SPECIFICATION), \
|
|
|
|
DOC_TITLE := Java™ Platform$(COMMA) Standard Edition \
|
2016-10-26 14:00:26 +00:00
|
|
|
$(VERSION_SPECIFICATION)<br>API Specification, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 1993, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := accessibility html missing syntax, \
|
2016-10-26 14:00:26 +00:00
|
|
|
DOCLINT_PACKAGES := -org.omg.* jdk.internal.logging.*, \
|
|
|
|
SPLIT_INDEX := TRUE, \
|
|
|
|
BOTTOM_COPYRIGHT_URL := $(CORE_BOTTOM_COPYRIGHT_URL), \
|
|
|
|
BOTTOM_TEXT := $(CORE_BOTTOM_TEXT), \
|
2016-11-22 12:44:41 +00:00
|
|
|
EXTRA_TOP := $(EARLYACCESS_TOP), \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(coredocs)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2015-11-12 21:26:07 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, docletapi, \
|
|
|
|
MODULES := jdk.javadoc, \
|
|
|
|
PACKAGES := \
|
|
|
|
jdk.javadoc.doclet \
|
|
|
|
jdk.javadoc.doclet.taglet \
|
|
|
|
jdk.javadoc.doclets, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := javadoc/doclet, \
|
|
|
|
TITLE := Doclet API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 1993, \
|
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(docletapi)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, old-docletapi, \
|
|
|
|
MODULES := jdk.javadoc, \
|
|
|
|
PACKAGES := com.sun.javadoc, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := javadoc/old/doclet, \
|
|
|
|
TITLE := Doclet API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 1993, \
|
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(old-docletapi)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, tagletapi, \
|
|
|
|
MODULES := jdk.javadoc, \
|
|
|
|
PACKAGES := com.sun.tools.doclets, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := javadoc/old/taglet, \
|
|
|
|
TITLE := Taglet API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 1993, \
|
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(tagletapi)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, domapi, \
|
|
|
|
MODULES := \
|
|
|
|
java.xml \
|
|
|
|
jdk.xml.dom, \
|
|
|
|
PACKAGES := \
|
|
|
|
org.w3c.dom \
|
|
|
|
org.w3c.dom.bootstrap \
|
|
|
|
org.w3c.dom.ls \
|
|
|
|
org.w3c.dom.ranges \
|
|
|
|
org.w3c.dom.traversal \
|
|
|
|
org.w3c.dom.html \
|
|
|
|
org.w3c.dom.stylesheets \
|
|
|
|
org.w3c.dom.css \
|
|
|
|
org.w3c.dom.events \
|
|
|
|
org.w3c.dom.views, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := plugin/dom, \
|
|
|
|
TITLE := Common DOM API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2005, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := accessibility html missing, \
|
2016-10-26 14:00:26 +00:00
|
|
|
SPLIT_INDEX := TRUE, \
|
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(domapi)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2016-10-05 08:49:21 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, jdi, \
|
|
|
|
MODULES := jdk.jdi, \
|
|
|
|
PACKAGES := \
|
|
|
|
com.sun.jdi \
|
|
|
|
com.sun.jdi.event \
|
|
|
|
com.sun.jdi.request \
|
|
|
|
com.sun.jdi.connect \
|
|
|
|
com.sun.jdi.connect.spi, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := jpda/jdi, \
|
|
|
|
OVERVIEW := $(JDK_TOPDIR)/src/jdk.jdi/share/classes/jdi-overview.html, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ Debug Interface, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 1999, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := accessibility missing syntax, \
|
|
|
|
SPLIT_INDEX := TRUE, \
|
2016-10-05 08:49:21 +00:00
|
|
|
))
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(jdi)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, jaas, \
|
|
|
|
MODULES := jdk.security.auth, \
|
|
|
|
PACKAGES := \
|
|
|
|
com.sun.security.auth \
|
|
|
|
com.sun.security.auth.callback \
|
|
|
|
com.sun.security.auth.login \
|
|
|
|
com.sun.security.auth.module, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := security/jaas/spec, \
|
|
|
|
OVERVIEW := $(JDK_TOPDIR)/src/jdk.security.auth/share/classes/jaas-overview.html, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ Authentication and Authorization Service, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 1998, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := missing, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(jaas)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, jgss, \
|
|
|
|
MODULES := jdk.security.jgss, \
|
|
|
|
PACKAGES := com.sun.security.jgss, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := security/jgss/spec, \
|
|
|
|
OVERVIEW := $(JDK_TOPDIR)/src/java.security.jgss/share/classes/jgss-overview.html, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ GSS-API Utilities, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 2000, \
|
|
|
|
))
|
2016-07-21 19:26:07 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(jgss)
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, smartcardio, \
|
|
|
|
MODULES := java.smartcardio, \
|
|
|
|
PACKAGES := javax.smartcardio, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := security/smartcardio/spec, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ Smart Card I/O, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 2005, \
|
|
|
|
))
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(smartcardio)
|
2016-04-08 09:51:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, httpserver, \
|
|
|
|
MODULES := jdk.httpserver, \
|
|
|
|
PACKAGES := \
|
|
|
|
com.sun.net.httpserver \
|
|
|
|
com.sun.net.httpserver.spi, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := net/httpserver/spec, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ HTTP Server, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 2005, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := accessibility missing syntax, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2014-11-28 13:01:05 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(httpserver)
|
2016-01-29 18:55:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
################################################################################
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2016-12-09 11:34:44 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, httpclient, \
|
|
|
|
MODULES := jdk.incubator.httpclient, \
|
|
|
|
PACKAGES := \
|
|
|
|
jdk.incubator.http, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := incubator/httpclient/spec, \
|
|
|
|
TITLE := Java™ HTTP Client API (incubator module), \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2015, \
|
|
|
|
DISABLED_DOCLINT := accessibility missing syntax, \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(httpclient)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, jsobject, \
|
|
|
|
MODULES := jdk.jsobject, \
|
|
|
|
PACKAGES := netscape.javascript, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := plugin/jsobject, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 1993, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Java™ JSObject Doc, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2015-03-27 20:48:08 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(jsobject)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, mgmt, \
|
|
|
|
MODULES := jdk.management, \
|
|
|
|
PACKAGES := com.sun.management, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := management/extension, \
|
|
|
|
OVERVIEW := $(JDK_TOPDIR)/src/java.management/share/classes/mgmt-overview.html, \
|
2016-11-18 14:50:43 +00:00
|
|
|
TITLE := Monitoring and Management Interface for the Java™ Platform, \
|
2016-10-26 14:00:26 +00:00
|
|
|
FIRST_COPYRIGHT_YEAR := 2003, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := accessibility missing reference, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(mgmt)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, attach, \
|
|
|
|
MODULES := jdk.attach, \
|
|
|
|
PACKAGES := \
|
|
|
|
com.sun.tools.attach \
|
|
|
|
com.sun.tools.attach.spi, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := attach/spec, \
|
|
|
|
TITLE := Attach API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2005, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := reference, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(attach)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, jconsole, \
|
|
|
|
MODULES := jdk.jconsole, \
|
|
|
|
PACKAGES := com.sun.tools.jconsole, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := jconsole/spec, \
|
|
|
|
TITLE := JConsole API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2006, \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(jconsole)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, jshellapi, \
|
|
|
|
MODULES := jdk.jshell, \
|
|
|
|
PACKAGES := \
|
|
|
|
jdk.jshell \
|
|
|
|
jdk.jshell.spi \
|
2016-12-20 21:44:04 +00:00
|
|
|
jdk.jshell.execution \
|
|
|
|
jdk.jshell.tool, \
|
2016-10-26 14:00:26 +00:00
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := jshell, \
|
|
|
|
TITLE := JShell API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2015, \
|
2016-12-20 21:44:04 +00:00
|
|
|
SPLIT_INDEX := TRUE, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(jshellapi)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, treeapi, \
|
|
|
|
MODULES := jdk.compiler, \
|
|
|
|
PACKAGES := \
|
|
|
|
com.sun.source.doctree \
|
|
|
|
com.sun.source.tree \
|
|
|
|
com.sun.source.util, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := javac/tree, \
|
|
|
|
TITLE := Compiler Tree API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2005, \
|
2016-11-18 14:50:43 +00:00
|
|
|
SPLIT_INDEX := TRUE, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(treeapi)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, nashornapi, \
|
|
|
|
MODULES := jdk.scripting.nashorn, \
|
|
|
|
PACKAGES := \
|
|
|
|
jdk.nashorn.api.scripting \
|
|
|
|
jdk.nashorn.api.tree, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := nashorn, \
|
|
|
|
TITLE := Nashorn API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2014, \
|
2016-11-18 14:50:43 +00:00
|
|
|
SPLIT_INDEX := TRUE, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(nashornapi)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, dynalinkapi, \
|
|
|
|
MODULES := jdk.dynalink, \
|
|
|
|
PACKAGES := \
|
|
|
|
jdk.dynalink \
|
|
|
|
jdk.dynalink.beans \
|
|
|
|
jdk.dynalink.linker \
|
|
|
|
jdk.dynalink.linker.support \
|
|
|
|
jdk.dynalink.support, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := dynalink, \
|
|
|
|
TITLE := Dynalink API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2015, \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(dynalinkapi)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, sctp, \
|
|
|
|
MODULES := jdk.sctp, \
|
|
|
|
PACKAGES := com.sun.nio.sctp, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := nio/sctp/spec, \
|
|
|
|
TITLE := SCTP API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2009, \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(sctp)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, jaccess, \
|
|
|
|
MODULES := jdk.accessibility, \
|
|
|
|
PACKAGES := com.sun.java.accessibility.util, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := accessibility/jaccess/spec, \
|
|
|
|
TITLE := JACCESS API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2002, \
|
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(jaccess)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
$(eval $(call SetupJavadocGeneration, jdknet, \
|
|
|
|
MODULES := jdk.net, \
|
|
|
|
PACKAGES := jdk.net, \
|
|
|
|
API_ROOT := jre, \
|
|
|
|
DEST_DIR := net/socketoptions/spec, \
|
|
|
|
TITLE := jdk.net API, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2014, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := missing, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
TARGETS += $(jdknet)
|
|
|
|
|
|
|
|
################################################################################
|
2014-04-12 19:05:42 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
# TODO: Need to decide when the plugin API is ready to publish as experimental API.
|
|
|
|
# This target is temporarily added for internal use for now.
|
2016-10-26 14:00:26 +00:00
|
|
|
$(eval $(call SetupJavadocGeneration, jlinkplugins, \
|
|
|
|
MODULES := jdk.jlink, \
|
|
|
|
PACKAGES := jdk.tools.jlink.plugin, \
|
|
|
|
API_ROOT := jdk, \
|
|
|
|
DEST_DIR := jlink, \
|
|
|
|
TITLE := JLink Plugin API - EXPERIMENTAL, \
|
|
|
|
FIRST_COPYRIGHT_YEAR := 2015, \
|
2016-11-18 14:50:43 +00:00
|
|
|
DISABLED_DOCLINT := html missing syntax, \
|
2016-10-26 14:00:26 +00:00
|
|
|
))
|
2016-03-17 19:03:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
TARGETS += $(jlinkplugins)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Copy JDWP html file
|
|
|
|
|
|
|
|
JDWP_HTML := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
|
|
|
|
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_JDWP_HTML, \
|
|
|
|
FILES := $(JDWP_HTML), \
|
|
|
|
DEST := $(JAVADOC_OUTPUTDIR)/platform/jpda/jdwp, \
|
|
|
|
))
|
|
|
|
|
|
|
|
COPY_TARGETS += $(COPY_JDWP_HTML)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Copy JVMTI html file
|
|
|
|
|
|
|
|
# Pick jvmti.html from any jvm variant, they are all the same.
|
|
|
|
JVMTI_HTML := $(firstword \
|
|
|
|
$(wildcard $(HOTSPOT_OUTPUTDIR)/variant-*/gensrc/jvmtifiles/jvmti.html))
|
|
|
|
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
|
|
|
|
FILES := $(JVMTI_HTML), \
|
|
|
|
DEST := $(JAVADOC_OUTPUTDIR)/platform/jvmti, \
|
|
|
|
))
|
|
|
|
|
|
|
|
COPY_TARGETS += $(COPY_JVMTI_HTML)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Optional target which bundles all generated javadocs into a zip archive.
|
2016-04-15 12:57:53 +00:00
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
JAVADOC_ARCHIVE_NAME := jdk-$(VERSION_STRING)-docs.zip
|
|
|
|
JAVADOC_ARCHIVE_ASSEMBLY_DIR := $(SUPPORT_OUTPUTDIR)/docs/zip-docs
|
|
|
|
JAVADOC_ARCHIVE_DIR := $(OUTPUT_ROOT)/bundles
|
|
|
|
JAVADOC_ARCHIVE := $(JAVADOC_ARCHIVE_DIR)/$(JAVADOC_ARCHIVE_NAME)
|
|
|
|
|
2016-11-22 12:44:41 +00:00
|
|
|
$(JAVADOC_ARCHIVE): $(TARGETS) $(COPY_TARGETS)
|
2016-04-15 12:57:53 +00:00
|
|
|
$(call LogInfo, Compressing javadoc to single $(JAVADOC_ARCHIVE_NAME))
|
|
|
|
$(MKDIR) -p $(JAVADOC_ARCHIVE_DIR)
|
|
|
|
$(RM) -r $(JAVADOC_ARCHIVE_ASSEMBLY_DIR)
|
|
|
|
$(MKDIR) -p $(JAVADOC_ARCHIVE_ASSEMBLY_DIR)
|
2016-10-26 14:00:26 +00:00
|
|
|
all_roots=`$(FIND) $(JAVADOC_OUTPUTDIR) | $(GREP) index.html | grep -v old/doclet`; \
|
2016-04-15 12:57:53 +00:00
|
|
|
pushd $(JAVADOC_ARCHIVE_ASSEMBLY_DIR); \
|
|
|
|
for index_file in $${all_roots} ; do \
|
|
|
|
target_dir=`dirname $${index_file}`; \
|
|
|
|
name=`$(ECHO) $${target_dir} | $(SED) "s;/spec;;" | $(SED) "s;.*/;;"`; \
|
|
|
|
$(LN) -s $${target_dir} $${name}; \
|
|
|
|
done; \
|
2016-11-22 13:47:52 +00:00
|
|
|
$(ZIPEXE) -q -r $(JAVADOC_ARCHIVE) * ; \
|
2016-04-15 12:57:53 +00:00
|
|
|
popd ;
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
ZIP_TARGETS += $(JAVADOC_ARCHIVE)
|
2016-07-08 06:55:54 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-10-26 14:00:26 +00:00
|
|
|
# Hook to include the corresponding custom file, if present.
|
|
|
|
$(eval $(call IncludeCustomExtension, , Javadoc.gmk))
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
docs-javadoc: $(TARGETS)
|
|
|
|
|
|
|
|
docs-copy: $(COPY_TARGETS)
|
|
|
|
|
|
|
|
docs-zip: $(ZIP_TARGETS)
|
|
|
|
|
|
|
|
all: docs-javadoc docs-copy docs-zip
|
|
|
|
|
|
|
|
.PHONY: default all docs-javadoc docs-copy docs-zip
|