jdk/makefiles/CreateJars.gmk
changeset 16478 52ea0de470fd
parent 16035 defa7fe4d2bd
child 16487 f3fecb3d79af
child 21382 16842ddc33a7
equal deleted inserted replaced
16477:15ee12718efe 16478:52ea0de470fd
   211 	META-INF/services/java.nio.charset.spi.CharsetProvider \
   211 	META-INF/services/java.nio.charset.spi.CharsetProvider \
   212 	META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
   212 	META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
   213 	org/relaxng/datatype \
   213 	org/relaxng/datatype \
   214 	sun/awt/HKSCS.class \
   214 	sun/awt/HKSCS.class \
   215 	sun/awt/motif/X11GB2312.class \
   215 	sun/awt/motif/X11GB2312.class \
   216 	sun/awt/motif/X11GB2312\$$Decoder.class \
   216 	sun/awt/motif/X11GB2312\$$$$Decoder.class \
   217 	sun/awt/motif/X11GB2312\$$Encoder.class \
   217 	sun/awt/motif/X11GB2312\$$$$Encoder.class \
   218 	sun/awt/motif/X11GBK.class \
   218 	sun/awt/motif/X11GBK.class \
   219 	sun/awt/motif/X11GBK\$$Encoder.class \
   219 	sun/awt/motif/X11GBK\$$$$Encoder.class \
   220 	sun/awt/motif/X11KSC5601.class \
   220 	sun/awt/motif/X11KSC5601.class \
   221 	sun/awt/motif/X11KSC5601\$$Decoder.class \
   221 	sun/awt/motif/X11KSC5601\$$$$Decoder.class \
   222 	sun/awt/motif/X11KSC5601\$$Encoder.class \
   222 	sun/awt/motif/X11KSC5601\$$$$Encoder.class \
   223 	sun/jvmstat \
   223 	sun/jvmstat \
   224 	sun/net/spi/nameservice/dns \
   224 	sun/net/spi/nameservice/dns \
   225 	sun/nio/cs/ext \
   225 	sun/nio/cs/ext \
   226 	sun/rmi/rmic \
   226 	sun/rmi/rmic \
   227 	sun/security/ec/ECDHKeyAgreement.class \
   227 	sun/security/ec/ECDHKeyAgreement.class \
   228 	sun/security/ec/ECDSASignature.class \
   228 	sun/security/ec/ECDSASignature.class \
   229 	sun/security/ec/ECDSASignature\$$Raw.class \
   229 	sun/security/ec/ECDSASignature\$$$$Raw.class \
   230 	sun/security/ec/ECDSASignature\$$SHA1.class \
   230 	sun/security/ec/ECDSASignature\$$$$SHA1.class \
   231 	sun/security/ec/ECDSASignature\$$SHA224.class \
   231 	sun/security/ec/ECDSASignature\$$$$SHA224.class \
   232 	sun/security/ec/ECDSASignature\$$SHA256.class \
   232 	sun/security/ec/ECDSASignature\$$$$SHA256.class \
   233 	sun/security/ec/ECDSASignature\$$SHA384.class \
   233 	sun/security/ec/ECDSASignature\$$$$SHA384.class \
   234 	sun/security/ec/ECDSASignature\$$SHA512.class \
   234 	sun/security/ec/ECDSASignature\$$$$SHA512.class \
   235 	sun/security/ec/ECKeyFactory.class \
   235 	sun/security/ec/ECKeyFactory.class \
   236 	sun/security/ec/ECKeyPairGenerator.class \
   236 	sun/security/ec/ECKeyPairGenerator.class \
   237 	sun/security/ec/SunEC\$$1.class \
   237 	sun/security/ec/SunEC\$$$$1.class \
   238 	sun/security/ec/SunEC.class \
   238 	sun/security/ec/SunEC.class \
   239 	sun/security/ec/SunECEntries.class \
   239 	sun/security/ec/SunECEntries.class \
   240 	sun/security/internal \
   240 	sun/security/internal \
   241 	sun/security/mscapi \
   241 	sun/security/mscapi \
   242 	sun/security/pkcs11 \
   242 	sun/security/pkcs11 \
   355 $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
   355 $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
   356 	@$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
   356 	@$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
   357 
   357 
   358 
   358 
   359 # Support for removing the addPropertyChangeListener and removePropertyChangeListener
   359 # Support for removing the addPropertyChangeListener and removePropertyChangeListener
   360 # methods from classes that only go into the profile builds. For now the Pack200.Packer
   360 # methods from classes that only go into the profile builds. 
   361 # and Packer200.Unpacker classes have special handling because of the $ in the file
       
   362 # name.
       
   363 BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
   361 BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
   364 
   362 
       
   363 # When there are $ characters in filenames we have some very subtle interactions between
       
   364 # make expansion and shell expansion. In this particular case $< will contain a single $ while
       
   365 # $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion
   365 $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
   366 $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
   366 	$(MKDIR) -p $(@D)
   367 	$(MKDIR) -p $(@D)
   367 	$(TOOL_REMOVEMETHODS) $< $@ addPropertyChangeListener removePropertyChangeListener
   368 	$(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
   368 
   369 
   369 CLASSES_TO_DEBEAN = \
   370 CLASSES_TO_DEBEAN = \
   370     java/util/logging/LogManager.class \
   371     java/util/logging/LogManager.class \
       
   372     java/util/jar/Pack200\$$Packer.class \
       
   373     java/util/jar/Pack200\$$Unpacker.class \
   371     com/sun/java/util/jar/pack/PackerImpl.class \
   374     com/sun/java/util/jar/pack/PackerImpl.class \
   372     com/sun/java/util/jar/pack/UnpackerImpl.class
   375     com/sun/java/util/jar/pack/UnpackerImpl.class 
   373 
   376 
   374 BEANLESS_CLASSES_TARGETS =
       
   375 ifneq ($(PROFILE),)
   377 ifneq ($(PROFILE),)
   376     BEANLESS_CLASSES_TARGETS := $(foreach c, $(CLASSES_TO_DEBEAN), $(BEANLESS_CLASSES)/$c)
   378     BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN))
   377 endif
   379 endif
   378 
   380 
   379 
   381 
   380 RT_JAR_CREATE_OPTIONS := c0fm
   382 RT_JAR_CREATE_OPTIONS := c0fm
   381 RT_JAR_UPDATE_OPTIONS := u0f
   383 RT_JAR_UPDATE_OPTIONS := u0f
   398 	        @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
   400 	        @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
   399 	    if [ -f $(CLASS_FILE) ]; then \
   401 	    if [ -f $(CLASS_FILE) ]; then \
   400 	      $(ECHO)  Updating rt.jar $(PROFILE) && \
   402 	      $(ECHO)  Updating rt.jar $(PROFILE) && \
   401 	      $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
   403 	      $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
   402                 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
   404                 $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
   403 	      $(MKDIR) -p $(BEANLESS_CLASSES)/java/util/jar; \
       
   404 	      $(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Packer.class \
       
   405 		$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Packer.class addPropertyChangeListener removePropertyChangeListener; \
       
   406 	      $(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Unpacker.class \
       
   407 		$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Unpacker.class addPropertyChangeListener removePropertyChangeListener; \
       
   408 	      $(CD) $(BEANLESS_CLASSES) && \
   405 	      $(CD) $(BEANLESS_CLASSES) && \
   409 		$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN) java/util/jar/* ; \
   406 		$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \
   410             fi
   407             fi
   411 	$(MV) $@.tmp $@
   408 	$(MV) $@.tmp $@
   412 
   409 
   413 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
   410 $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
   414 				    $(RESOURCE_JAR_MANIFEST_FILE)
   411 				    $(RESOURCE_JAR_MANIFEST_FILE)