< prev index next >

make/Javadoc.gmk

Print this page

        

*** 72,81 **** --- 72,82 ---- ATTACH_FIRST_COPYRIGHT_YEAR = 2005 JCONSOLE_FIRST_COPYRIGHT_YEAR = 2006 SCTPAPI_FIRST_COPYRIGHT_YEAR = 2009 TRACING_FIRST_COPYRIGHT_YEAR = 2008 TREEAPI_FIRST_COPYRIGHT_YEAR = 2005 + NASHORNAPI_FIRST_COPYRIGHT_YEAR = 2014 JNLP_FIRST_COPYRIGHT_YEAR = 1998 PLUGIN2_FIRST_COPYRIGHT_YEAR = 2007 JDKNET_FIRST_COPYRIGHT_YEAR = 2014 # Oracle name
*** 138,147 **** --- 139,149 ---- ALL_SOURCE_DIRS := $(wildcard \ $(JDK_TOPDIR)/src/*/share/classes \ $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS)/classes \ $(JDK_TOPDIR)/src/*/$(OPENJDK_TARGET_OS_TYPE)/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 \ $(JDK_OUTPUTDIR)/gensrc/j* \ $(JDK_OUTPUTDIR)/gendocsrc_rmic \
*** 1127,1136 **** --- 1129,1192 ---- $(prep-target) $(call PackageFilter,$(TREEAPI_PKGS)) ############################################################# # + # nashornapidocs + # + + ALL_OTHER_TARGETS += nashornapidocs + + NASHORNAPI_DOCDIR := $(JDK_API_DOCSDIR)/nashorn + NASHORNAPI2COREAPI := ../$(JDKJRE2COREAPI) + NASHORNAPI_DOCTITLE := Nashorn API + NASHORNAPI_WINDOWTITLE := Nashorn API + NASHORNAPI_HEADER := <strong>Nashorn API</strong> + NASHORNAPI_BOTTOM := $(call CommonBottom,$(NASHORNAPI_FIRST_COPYRIGHT_YEAR)) + NASHORNAPI_GROUPNAME := Packages + NASHORNAPI_REGEXP := jdk.nashorn.api.scripting.* + # NASHORNAPI_PKGS is located in NON_CORE_PKGS.gmk + + NASHORNAPI_INDEX_HTML = $(NASHORNAPI_DOCDIR)/index.html + NASHORNAPI_OPTIONS_FILE = $(DOCSTMPDIR)/nashornapi.options + NASHORNAPI_PACKAGES_FILE = $(DOCSTMPDIR)/nashornapi.packages + + nashornapidocs: $(NASHORNAPI_INDEX_HTML) + + # Set relative location to core api document root + $(NASHORNAPI_INDEX_HTML): GET2DOCSDIR=$(NASHORNAPI2COREAPI)/.. + + # Run javadoc if the index file is out of date or missing + $(NASHORNAPI_INDEX_HTML): $(NASHORNAPI_OPTIONS_FILE) $(NASHORNAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE) + $(prep-javadoc) + $(call JavadocSummary,$(NASHORNAPI_OPTIONS_FILE),$(NASHORNAPI_PACKAGES_FILE)) + $(JAVADOC_CMD) -d $(@D) \ + @$(NASHORNAPI_OPTIONS_FILE) @$(NASHORNAPI_PACKAGES_FILE) + + # Create file with javadoc options in it + $(NASHORNAPI_OPTIONS_FILE): + $(prep-target) + @($(call COMMON_JAVADOCFLAGS) ; \ + $(call COMMON_JAVADOCTAGS) ; \ + $(call OptionOnly,-Xdoclint:all) ; \ + $(call OptionPair,-sourcepath,$(RELEASEDOCS_SOURCEPATH)) ; \ + $(call OptionPair,-encoding,ascii) ; \ + $(call OptionPair,-doctitle,$(NASHORNAPI_DOCTITLE)) ; \ + $(call OptionPair,-windowtitle,$(NASHORNAPI_WINDOWTITLE) $(DRAFT_WINTITLE)); \ + $(call OptionPair,-header,$(NASHORNAPI_HEADER)$(DRAFT_HEADER)) ; \ + $(call OptionPair,-bottom,$(NASHORNAPI_BOTTOM)$(DRAFT_BOTTOM)) ; \ + $(call OptionTrip,-group,$(NASHORNAPI_GROUPNAME),$(NASHORNAPI_REGEXP)); \ + $(call OptionTrip,-linkoffline,$(NASHORNAPI2COREAPI),$(COREAPI_DOCSDIR)/); \ + ) >> $@ + + # Create a file with the package names in it + $(NASHORNAPI_PACKAGES_FILE): $(call PackageDependencies,$(NASHORNAPI_PKGS)) + $(prep-target) + $(call PackageFilter,$(NASHORNAPI_PKGS)) + + ############################################################# + # # sctpdocs # ALL_OTHER_TARGETS += sctpdocs
< prev index next >