8178038: Copy jdwp-protocol.html to proper location

8178039: Copy jvmti.html to proper location
8178316: Add JVM-MANAGEMENT-MIB.mib to jdk/src/java.management/share/specs/

Reviewed-by: erikj, mchung
This commit is contained in:
Magnus Ihse Bursie 2017-04-23 21:10:32 +02:00
parent d28d3f3d59
commit 241efa9566
3 changed files with 53 additions and 30 deletions

View File

@ -343,27 +343,42 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \
# JAVASE_API_MODULEGRAPH_TARGETS. # JAVASE_API_MODULEGRAPH_TARGETS.
################################################################################ ################################################################################
# Copy targets # Copy JDK specs files
JDWP_HTML := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html # For all html documentation in $module/share/specs directories, copy it
# unmodified
$(eval $(call SetupCopyFiles, COPY_JDWP_HTML, \ ALL_MODULES := $(call FindAllModules)
FILES := $(JDWP_HTML), \ COPY_SPEC_FILTER := %.html %.gif %.jpg %.mib
DEST := $(JAVADOC_OUTPUTDIR)/platform/jpda/jdwp, \
$(foreach m, $(ALL_MODULES), \
$(eval SPECS_$m := $(call FindModuleSpecsDirs, $m)) \
$(if $(SPECS_$m), \
$(eval $(call SetupCopyFiles, COPY_$m, \
SRC := $(SPECS_$m), \
FILES := $(filter $(COPY_SPEC_FILTER), $(call CacheFind, $(SPECS_$m))), \
DEST := $(JAVADOC_OUTPUTDIR)/specs/, \
)) \
$(eval JDK_SPECS_TARGETS += $(COPY_$m)) \
) \
)
# Special treatment for generated documentation
JDWP_PROTOCOL := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
$(eval $(call SetupCopyFiles, COPY_JDWP_PROTOCOL, \
FILES := $(JDWP_PROTOCOL), \
DEST := $(JAVADOC_OUTPUTDIR)/specs/jdwp, \
)) ))
JDK_SPECS_TARGETS += $(COPY_JDWP_PROTOCOL)
COPY_TARGETS += $(COPY_JDWP_HTML) # Get jvmti.html from the main jvm variant (all variants' jvmti.html are identical).
JVMTI_HTML := $(HOTSPOT_OUTPUTDIR)/variant-$(JVM_VARIANT_MAIN)/gensrc/jvmtifiles/jvmti.html
# 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, \ $(eval $(call SetupCopyFiles, COPY_JVMTI_HTML, \
FILES := $(JVMTI_HTML), \ FILES := $(JVMTI_HTML), \
DEST := $(JAVADOC_OUTPUTDIR)/platform/jvmti, \ DEST := $(JAVADOC_OUTPUTDIR)/specs, \
)) ))
JDK_SPECS_TARGETS += $(COPY_JVMTI_HTML)
COPY_TARGETS += $(COPY_JVMTI_HTML)
################################################################################ ################################################################################
# Optional target which bundles all generated javadocs into a zip archive. # Optional target which bundles all generated javadocs into a zip archive.
@ -372,10 +387,10 @@ JAVADOC_ZIP_NAME := jdk-$(VERSION_STRING)-docs.zip
JAVADOC_ZIP_FILE := $(OUTPUT_ROOT)/bundles/$(JAVADOC_ZIP_NAME) JAVADOC_ZIP_FILE := $(OUTPUT_ROOT)/bundles/$(JAVADOC_ZIP_NAME)
$(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \ $(eval $(call SetupZipArchive, BUILD_JAVADOC_ZIP, \
SRC := $(JAVADOC_OUTPUTDIR), \ SRC := $(JAVADOC_OUTPUTDIR), \
ZIP := $(JAVADOC_ZIP_FILE), \ ZIP := $(JAVADOC_ZIP_FILE), \
EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \ EXTRA_DEPS := $(JDK_API_JAVADOC_TARGETS) $(JDK_API_MODULEGRAPH_TARGETS) \
$(COPY_TARGETS), \ $(JDK_SPECS_TARGETS), \
)) ))
ZIP_TARGETS += $(BUILD_JAVADOC_ZIP) ZIP_TARGETS += $(BUILD_JAVADOC_ZIP)
@ -395,12 +410,12 @@ docs-javase-api-javadoc: $(JAVASE_API_JAVADOC_TARGETS)
docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS) docs-javase-api-modulegraph: $(JAVASE_API_MODULEGRAPH_TARGETS)
docs-copy: $(COPY_TARGETS) docs-jdk-specs: $(JDK_SPECS_TARGETS)
docs-zip: $(ZIP_TARGETS) docs-zip: $(ZIP_TARGETS)
all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \ all: docs-jdk-api-javadoc docs-jdk-api-modulegraph docs-javase-api-javadoc \
docs-javase-api-modulegraph docs-copy docs-zip docs-javase-api-modulegraph docs-jdk-specs docs-zip
.PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \ .PHONY: default all docs-jdk-api-javadoc docs-jdk-api-modulegraph \
docs-javase-api-javadoc docs-javase-api-modulegraph docs-copy docs-zip docs-javase-api-javadoc docs-javase-api-modulegraph docs-jdk-specs docs-zip

View File

@ -374,8 +374,8 @@ docs-javase-api-javadoc:
docs-javase-api-modulegraph: docs-javase-api-modulegraph:
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-javase-api-modulegraph) +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-javase-api-modulegraph)
docs-copy: docs-jdk-specs:
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-copy) +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-jdk-specs)
docs-zip: docs-zip:
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-zip) +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs-zip)
@ -384,8 +384,8 @@ update-build-docs:
+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f UpdateBuildDocs.gmk) +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f UpdateBuildDocs.gmk)
ALL_TARGETS += docs-jdk-api-javadoc docs-jdk-api-modulegraph \ ALL_TARGETS += docs-jdk-api-javadoc docs-jdk-api-modulegraph \
docs-javase-api-javadoc docs-javase-api-modulegraph docs-copy docs-zip \ docs-javase-api-javadoc docs-javase-api-modulegraph docs-jdk-specs \
update-build-docs docs-zip update-build-docs
################################################################################ ################################################################################
# Cross compilation support # Cross compilation support
@ -790,10 +790,10 @@ else
docs-javase-api-modulegraph: exploded-image buildtools-modules docs-javase-api-modulegraph: exploded-image buildtools-modules
# The gensrc step for jdk.jdi creates an html file that is used by docs-copy. # The gensrc steps for hotspot and jdk.jdi create html spec files.
docs-copy: hotspot-$(JVM_VARIANT_MAIN)-gensrc jdk.jdi-gensrc docs-jdk-specs: hotspot-$(JVM_VARIANT_MAIN)-gensrc jdk.jdi-gensrc
docs-zip: docs-jdk docs-copy docs-zip: docs-jdk
test: jdk-image test-image test: jdk-image test-image
@ -922,7 +922,7 @@ ifeq ($(ENABLE_FULL_DOCS), true)
docs-javase-api: docs-javase-api-modulegraph docs-javase-api: docs-javase-api-modulegraph
endif endif
docs-jdk: docs-jdk-api docs-jdk: docs-jdk-api docs-jdk-specs
docs-javase: docs-javase-api docs-javase: docs-javase-api
# alias for backwards compatibility # alias for backwards compatibility
@ -959,7 +959,7 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
endif endif
# This target builds the documentation image # This target builds the documentation image
docs-image: docs-jdk docs-copy docs-image: docs-jdk
# This target builds the test image # This target builds the test image
test-image: prepare-test-image test-image-hotspot-jtreg-native \ test-image: prepare-test-image test-image-hotspot-jtreg-native \

View File

@ -229,6 +229,8 @@ ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
endif endif
SRC_SUBDIRS += share/classes SRC_SUBDIRS += share/classes
SPEC_SUBDIRS += share/specs
# Find all module-info.java files for the current build target platform and # Find all module-info.java files for the current build target platform and
# configuration. # configuration.
# Param 1 - Module to find for, set to * for finding all # Param 1 - Module to find for, set to * for finding all
@ -281,6 +283,12 @@ FindModuleSrcDirs = \
$(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \ $(addsuffix /$(strip $1), $(GENERATED_SRC_DIRS) $(IMPORT_MODULES_SRC)) \
$(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS))))) $(foreach sub, $(SRC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
# Find all specs dirs for a particular module
# $1 - Module to find specs dirs for
FindModuleSpecsDirs = \
$(strip $(wildcard \
$(foreach sub, $(SPEC_SUBDIRS), $(addsuffix /$(strip $1)/$(sub), $(TOP_SRC_DIRS)))))
# Construct the complete module source path # Construct the complete module source path
GetModuleSrcPath = \ GetModuleSrcPath = \
$(call PathList, \ $(call PathList, \