United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6713962 sp####.MST files should be compressed
JDK-6713962 : sp####.MST files should be compressed

Details
Type:
Bug
Submit Date:
2008-06-12
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-07-14
Component:
install
OS:
generic,windows
Sub-Component:
install
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10,6u12
Fixed Versions:
6u10 (b27)

Related Reports
Backport:
Relates:

Sub Tasks

Description
The size of the English sponsor transform is now 1.3MB!!!  This is a result of us adding sponsors support for OpenOffice, Yahoo and 3Rings. This file is downloaded regardless of whether they actually choose to install one of our sponsor products.  Prior to this effort it was only 167KB. 

We should compress this file with lzma compression, and we can get it back down to 179 KB.

                                    

Comments
EVALUATION

We already use lzma to compress the kernel.msi file.  We should use that same approach to compress the transforms files.
                                     
2008-06-12
SUGGESTED FIX

Define and use extra 7-Zip LZMA file compression for all windows installers that download MSIs and MSTs - online, online kernel, and offline sponsors.
Moved LZMA compression support routines from wrapper_online/jre/jinstall.cpp to wrapper/common/WrapperUtils.cpp.

No change needed to offline, no sponsor.  The MSI and language transforms are included in the offline download.
wrapper/wrapper.jre only uses EXTRA_COMP_LIB if SPONSOR and EXTRA_COMP_LIB_NAME.
Need wrapper/common/WrapperUtils.cpp to use resource.h for executable being built.

wrapper_online/jre/jinstall.cpp: added UncompressDownloadedFile() and CheckAndUncompressDownloadedFiles()

wrapper.jre: separated multi-use szTransforms into szLocalDir and szTransformPath
Changed GetOptionsFromXmlIfOnline() to call ExtraUnCompression() after downloading sponsor transform

webrev:
http://sa.sfbay.sun.com/projects/deployment_data/6u10/6713962.0
                                     
2008-06-17



Hardware and Software, Engineered to Work Together