Bug #469
closed
minimize size of final distribution
Added by Matt Jones over 22 years ago.
Updated about 22 years ago.
Category:
morpho - general
Description
Current morpho and config jar files are huge (3.7 MB), I think needlessly. We
need to go through and systematically trim out unneeded cruft from the jar files
that get built. This includes consolidation of images and icons used to include
only one copy of those few images that we actually use. Right now, there are
separate copies of the images in each package. We can accomplish this my making
a separate jar file for images that gets built from an "images" subdir within
lib, and the images would be loaded using getResource relative to that jar path.
Many config files in lib are probably uneeded and can be axed from the jar at
least, possibly from CVS too.
Where are these reportedly large jar files? My morpho.jar is currently 711KB
and morpho-config.jar is reported as 133KB.
Dan Higgins
Just now I took a look the both jar file. Currently, in morpho-jar file are
eml dtd file, some xml files and some style sheets. They all seem usefull.
But in morpho.jar file, we can delete some image files which are useless.
I took the linux machine and found the morpho-config.jar is 135 KB and
morpho.jar is 747 KB. Almost the same size as Dan's.
Develop list of files that are not needed, and if everyone agrees, then delete them.
These files were deleted from cvs:
src/edu/ucsb/nceas/morpho/query/WrappedTextRenderer.java
src/edu/ucsb/nceas/morpho/query/images/openButton.gif
src/edu/ucsb/nceas/morpho/query/images/local+network-metadata+data.gif
src/edu/ucsb/nceas/morpho/query/images/local+network-metadata.gif
src/edu/ucsb/nceas/morpho/query/images/local-metacat.gif
src/edu/ucsb/nceas/morpho/query/images/local-metadata+data.gif
src/edu/ucsb/nceas/morpho/query/images/local-metadata.gif
src/edu/ucsb/nceas/morpho/query/images/metacat.gif
src/edu/ucsb/nceas/morpho/query/images/net.gif
src/edu/ucsb/nceas/morpho/query/images/network-metadata+data.gif
src/edu/ucsb/nceas/morpho/query/images/network-metadata.gif
lib/GeographicCoverage.xml
lib/TaxonomicCoverage.xml
lib/TemporalCoverage.xml
Then we create new jar file named shippedIcons.jar which only contains the
icons morpho used to replace jlfgr-1_0.jar to be distributed. jlfar-1_0.jar
will be keep in cvs too in order for future usage.
Original Bugzilla ID was 469
Also available in: Atom
PDF