6595663: Manifest on jars contain JavaBeans entries
Reviewed-by: alanb, mchung
This commit is contained in:
parent
4e01afab2d
commit
218457a845
@ -211,9 +211,13 @@ $(DEMO_BUILD_SRCDIR)/%: $(DEMO_SRCDIR)/../java_crw_demo/%
|
||||
endif
|
||||
|
||||
# Jar manifest file
|
||||
$(DEMO_MANIFEST):
|
||||
MAINMANIFEST = $(JDK_TOPDIR)/make/tools/manifest.mf
|
||||
$(DEMO_MANIFEST): $(MAINMANIFEST)
|
||||
@$(prep-target)
|
||||
$(ECHO) "Main-Class: $(DEMO_MAINCLASS)" > $@
|
||||
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
|
||||
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
|
||||
$(MAINMANIFEST) >> $@
|
||||
$(ECHO) "Main-Class: $(DEMO_MAINCLASS)" >> $@
|
||||
ifdef DEMO_MANIFEST_ATTR
|
||||
$(ECHO) "$(DEMO_MANIFEST_ATTR)" >> $@
|
||||
endif
|
||||
|
@ -84,10 +84,10 @@ MakeHeadlessJarFileList: $(TOTAL_HEADLESS_JAR_FILELIST) $(JARSPLIT_JARFILE)
|
||||
|
||||
# Create headless rt.jar
|
||||
HL_RT_JAR=$(ABS_TEMPDIR)/rt-hl-orig.jar
|
||||
$(HL_RT_JAR): MakeHeadlessJarFileList $(JAR_MANIFEST_FILE)
|
||||
$(HL_RT_JAR): MakeHeadlessJarFileList $(RT_JAR_MANIFEST_FILE)
|
||||
$(prep-target)
|
||||
$(CD) $(CLASSBINDIR) ; \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \
|
||||
$(JAR_JFLAGS)
|
||||
@$(CD) $(CLASSBINDIR); $(java-vm-cleanup)
|
||||
|
||||
|
@ -609,8 +609,8 @@ $(RT_JAR_FILELIST) + $(RES_JAR_FILELIST): \
|
||||
@$(java-vm-cleanup)
|
||||
|
||||
# Create the manifest file.
|
||||
JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/manifest.tmp
|
||||
$(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
|
||||
RT_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/rt_manifest.tmp
|
||||
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
|
||||
$(prep-target)
|
||||
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
|
||||
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
|
||||
@ -618,21 +618,28 @@ $(JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
|
||||
$(ECHO) >> $@
|
||||
$(CAT) $(BEANMANIFEST) >> $@
|
||||
|
||||
OTHER_JAR_MANIFEST_FILE=$(ABS_TEMPDIR)/other_manifest.tmp
|
||||
$(OTHER_JAR_MANIFEST_FILE): $(MAINMANIFEST)
|
||||
$(prep-target)
|
||||
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
|
||||
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
|
||||
$(MAINMANIFEST) >> $@
|
||||
|
||||
# Create resources.jar containing non-class files
|
||||
RESOURCES_JAR=$(ABS_TEMPDIR)/resources-orig.jar
|
||||
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(JAR_MANIFEST_FILE)
|
||||
$(RESOURCES_JAR): $(RES_JAR_FILELIST) $(OTHER_JAR_MANIFEST_FILE)
|
||||
$(prep-target)
|
||||
$(CD) $(CLASSBINDIR) && \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
|
||||
@$(RES_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
|
||||
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
|
||||
|
||||
# Create jsse.jar containing SunJSSE implementation classes
|
||||
JSSE_JAR=$(ABS_TEMPDIR)/jsse-orig.jar
|
||||
$(JSSE_JAR): $(JAR_MANIFEST_FILE)
|
||||
$(JSSE_JAR): $(OTHER_JAR_MANIFEST_FILE)
|
||||
$(prep-target)
|
||||
$(CD) $(CLASSBINDIR) && \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(OTHER_JAR_MANIFEST_FILE) $@ \
|
||||
$(JSSE_CLASSES_DIRS) $(BOOT_JAR_JFLAGS)
|
||||
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
|
||||
|
||||
@ -676,10 +683,10 @@ endif
|
||||
|
||||
# Create rt.jar
|
||||
RT_JAR=$(ABS_TEMPDIR)/rt-orig.jar
|
||||
$(RT_JAR): $(RT_JAR_FILELIST) $(JAR_MANIFEST_FILE)
|
||||
$(RT_JAR): $(RT_JAR_FILELIST) $(RT_JAR_MANIFEST_FILE)
|
||||
$(prep-target)
|
||||
$(CD) $(CLASSBINDIR) && \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ \
|
||||
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ \
|
||||
@$(RT_JAR_FILELIST) $(BOOT_JAR_JFLAGS)
|
||||
@$(CD) $(CLASSBINDIR) && $(java-vm-cleanup)
|
||||
|
||||
|
@ -31,9 +31,11 @@ include $(BUILDDIR)/common/Release.gmk
|
||||
JCE_MANIFEST_FILE = $(TEMPDIR)/manifest.mf
|
||||
$(JCE_MANIFEST_FILE): $(MAINMANIFEST)
|
||||
$(prep-target)
|
||||
( $(SED) "s/@@RELEASE@@/$(RELEASE)/" $<; \
|
||||
$(ECHO) "Extension-Name: javax.crypto"; \
|
||||
$(ECHO) "Implementation-Vendor-Id: com.sun"; ) > $@
|
||||
$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" \
|
||||
-e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
|
||||
$(MAINMANIFEST) >> $@
|
||||
$(ECHO) "Extension-Name: javax.crypto" >> $@
|
||||
$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@
|
||||
|
||||
README-MAKEFILE_WARNING = \
|
||||
"\nPlease read make/javax/crypto/Makefile for further build instructions."
|
||||
|
@ -1,7 +1,7 @@
|
||||
Manifest-Version: 1.0
|
||||
Specification-Title: Java Platform API Specification
|
||||
Specification-Version: 1.7
|
||||
Specification-Vendor: Oracle
|
||||
Specification-Vendor: Oracle Corporation
|
||||
Implementation-Title: Java Runtime Environment
|
||||
Implementation-Version: @@RELEASE@@
|
||||
Implementation-Vendor: @@COMPANY_NAME@@
|
||||
|
Loading…
x
Reference in New Issue
Block a user