makefiles/CreateJars.gmk

Print this page




 812 # classes in the com.sun.java.swing.plaf packages, since we've always
 813 # allowed, and even advocated, extending them (see bug 6476749).
 814 #
 815 # This approach is NOT to be used as a general purpose way to avoid such
 816 # compiler warnings for non-core packages. The correct way is to document
 817 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
 818 # definition.
 819 #
 820 # Swing has taken this approach only as a temporary measure to avoid
 821 # the compiler warnings until we can properly document these packages.
 822 # This is covered under 6491853.
 823 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
 824                         com.sun.java.swing.plaf.motif    \
 825                         com.sun.java.swing.plaf.gtk
 826 
 827 #
 828 # Include the exported private packages in ct.sym.
 829 # This is an interim solution until the ct.sym is replaced
 830 # with a new module system (being discussed for JDK 8).
 831 #
 832 EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
 833                         com.oracle.net \
 834                         com.oracle.nio
 835 
 836 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
 837         $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 838         $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 839         $(JAVA) $(NEW_JAVAC) \
 840             -bootclasspath $(JDK_OUTPUTDIR)/classes \
 841             -XDprocess.packages -proc:only \
 842             -processor com.sun.tools.javac.sym.CreateSymbols \
 843             -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
 844             -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
 845             $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
 846         $(TOUCH) $@
 847 
 848 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols))
 849 $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
 850                 SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
 851                 INCLUDES:=META-INF/sym,\
 852                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
 853                 CHECK_COMPRESS_JAR:=true))




 812 # classes in the com.sun.java.swing.plaf packages, since we've always
 813 # allowed, and even advocated, extending them (see bug 6476749).
 814 #
 815 # This approach is NOT to be used as a general purpose way to avoid such
 816 # compiler warnings for non-core packages. The correct way is to document
 817 # the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
 818 # definition.
 819 #
 820 # Swing has taken this approach only as a temporary measure to avoid
 821 # the compiler warnings until we can properly document these packages.
 822 # This is covered under 6491853.
 823 EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
 824                         com.sun.java.swing.plaf.motif    \
 825                         com.sun.java.swing.plaf.gtk
 826 
 827 #
 828 # Include the exported private packages in ct.sym.
 829 # This is an interim solution until the ct.sym is replaced
 830 # with a new module system (being discussed for JDK 8).
 831 #
 832 EXPORTED_PRIVATE_PKGS = com.oracle.net \

 833                         com.oracle.nio
 834 
 835 $(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
 836         $(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 837         $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
 838         $(JAVA) $(NEW_JAVAC) \
 839             -bootclasspath $(JDK_OUTPUTDIR)/classes \
 840             -XDprocess.packages -proc:only \
 841             -processor com.sun.tools.javac.sym.CreateSymbols \
 842             -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
 843             -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
 844             $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
 845         $(TOUCH) $@
 846 
 847 $(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols))
 848 $(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
 849                 SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
 850                 INCLUDES:=META-INF/sym,\
 851                 JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
 852                 CHECK_COMPRESS_JAR:=true))