make/CompileJavaModules.gmk
changeset 29313 36f48966bc7a
parent 29169 9a91cf20c223
child 29437 807b7c4a4e62
equal deleted inserted replaced
29312:f3f859137ce6 29313:36f48966bc7a
     1 #
     1 #
     2 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
    40 
    40 
    41 java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
    41 java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
    42 
    42 
    43 ################################################################################
    43 ################################################################################
    44 
    44 
       
    45 java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
    45 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
    46 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
    46 java.base_CLEAN := intrinsic.properties
    47 java.base_CLEAN := intrinsic.properties
    47 
    48 
    48 java.base_EXCLUDES += java/lang/doc-files
    49 java.base_EXCLUDES += java/lang/doc-files
    49 
    50 
    87       #
    88       #
    88 endif
    89 endif
    89 
    90 
    90 ################################################################################
    91 ################################################################################
    91 
    92 
       
    93 java.datatransfer_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
    92 java.datatransfer_COPY := flavormap.properties
    94 java.datatransfer_COPY := flavormap.properties
    93 
    95 
    94 ################################################################################
    96 ################################################################################
    95 
    97 
       
    98 java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-missing,-reference '-Xdoclint/package:java.*,javax.*' 
    96 java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
    99 java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
    97 java.desktop_CLEAN := iio-plugin.properties cursors.properties
   100 java.desktop_CLEAN := iio-plugin.properties cursors.properties
    98 
   101 
    99 java.desktop_EXCLUDES += \
   102 java.desktop_EXCLUDES += \
   100     java/awt/doc-files \
   103     java/awt/doc-files \
   237       #
   240       #
   238 endif
   241 endif
   239 
   242 
   240 ################################################################################
   243 ################################################################################
   241 
   244 
       
   245 java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   242 java.scripting_COPY := .js
   246 java.scripting_COPY := .js
   243 java.scripting_CLEAN := .properties
   247 java.scripting_CLEAN := .properties
   244 
   248 
   245 ################################################################################
   249 ################################################################################
   246 
   250 
       
   251 java.sql_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   247 java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
   252 java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
   248 
   253 
   249 ################################################################################
   254 ################################################################################
   250 
   255 
       
   256 java.sql.rowset_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   251 java.sql.rowset_CLEAN_FILES := $(wildcard \
   257 java.sql.rowset_CLEAN_FILES := $(wildcard \
   252     $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
   258     $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
   253     $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
   259     $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
   254 
   260 
   255 ################################################################################
   261 ################################################################################
   259   java.management_EXCLUDES += com/sun/jmx/remote/protocol/iiop
   265   java.management_EXCLUDES += com/sun/jmx/remote/protocol/iiop
   260 endif
   266 endif
   261 
   267 
   262 ################################################################################
   268 ################################################################################
   263 
   269 
       
   270 java.rmi_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   264 java.rmi_CLEAN_FILES := $(wildcard \
   271 java.rmi_CLEAN_FILES := $(wildcard \
   265     $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
   272     $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
   266     $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
   273     $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
   267 
   274 
   268 ################################################################################
   275 ################################################################################
   307 java.xml.ws_COPY := .xml
   314 java.xml.ws_COPY := .xml
   308 java.xml.ws_CLEAN := .properties
   315 java.xml.ws_CLEAN := .properties
   309 
   316 
   310 ################################################################################
   317 ################################################################################
   311 
   318 
       
   319 java.naming_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   312 java.naming_CLEAN := jndiprovider.properties
   320 java.naming_CLEAN := jndiprovider.properties
   313 
   321 
   314 ################################################################################
   322 ################################################################################
   315 
   323 
       
   324 java.security.saaj_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   316 java.security.saaj_CLEAN := .properties
   325 java.security.saaj_CLEAN := .properties
   317 
   326 
   318 ################################################################################
   327 ################################################################################
   319 
   328 
       
   329 java.xml.crypto_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
   320 java.xml.crypto_COPY := .dtd .xml
   330 java.xml.crypto_COPY := .dtd .xml
   321 java.xml.crypto_CLEAN := .properties
   331 java.xml.crypto_CLEAN := .properties
   322 
   332 
   323 ################################################################################
   333 ################################################################################
   324 
   334 
   483     ## The source of this module is compiled elsewhere, hotspot, and imported.
   493     ## The source of this module is compiled elsewhere, hotspot, and imported.
   484     ## Service types are required in the classpath when compiing module-info
   494     ## Service types are required in the classpath when compiing module-info
   485     $1_CLASSPATH := $$($1_CLASSPATH) $$(addprefix $(JDK_OUTPUTDIR)/modules/,jdk.hotspot.agent)
   495     $1_CLASSPATH := $$($1_CLASSPATH) $$(addprefix $(JDK_OUTPUTDIR)/modules/,jdk.hotspot.agent)
   486   endif
   496   endif
   487   $1_CLASSPATH := $$(subst $$(SPACE),$$(PATH_SEP),$$($1_CLASSPATH))
   497   $1_CLASSPATH := $$(subst $$(SPACE),$$(PATH_SEP),$$($1_CLASSPATH))
   488   $1_JAVAC_FLAGS := -bootclasspath "$$($1_CLASSPATH)"
   498   $1_JAVAC_FLAGS := -bootclasspath "$$($1_CLASSPATH)" $$($1_ADD_JAVAC_FLAGS)
   489 
   499 
   490   $$(eval $$(call SetupJavaCompilation,$1, \
   500   $$(eval $$(call SetupJavaCompilation,$1, \
   491       SETUP := $$(if $$($1_SETUP), $$($1_SETUP), GENERATE_JDKBYTECODE), \
   501       SETUP := $$(if $$($1_SETUP), $$($1_SETUP), GENERATE_JDKBYTECODE), \
   492       SRC := $$(wildcard $$(call ALL_SRC_DIRS,$1)), \
   502       SRC := $$(wildcard $$(call ALL_SRC_DIRS,$1)), \
   493       INCLUDES:=$(JDK_USER_DEFINED_FILTER),\
   503       INCLUDES:=$(JDK_USER_DEFINED_FILTER),\