CCL-ZIP is a small Info-ZIP clone written in Java.
CCL-ZIP does support the basic options like adding and deleting zipfile entries. Nevertheless it has a feature which is missing in the original zip program. It is the ability to specify the directory under which files shall be stored in the zip archive.
You can always find the latest version of this page at: http://www.kclee.com/clemens/java/zip/
zip test -e example ../../file.txtwill create an archive with the following table of contents:
Archive: test.zip Length Date Time Name ------ ---- ---- ---- 5 03-17-98 08:02 example/file.txt ------ ------- 5 1 fileTo achieve the same with the original zip program you do the following on a Windows 95 system:
cd ../../.. zip .../test example/file.txtProblem is, this does not work on a Unix shell. On Unix you have to put both commands in the same line separated with a ';'. This now in turn doesn't work any more on a DOS alike shell.
Besides of this unportability, you are completely out of luck if 'file.txt' doesn't lie in a directory named 'example'.
j: junk (don't record) directory names
d: delete entries in zipfile
e: insErt entries with directory 'string'
r: recurse into directories
(store files with specified path)
version: prints the version number of the program
help: prints this help message
For comparison, here are the options of the Info-ZIP tool.
Version 2.8Version 2.8 has been released on May 14, 2000