The saveAll Statement
The ZKM Script saveAll statement saves all opened classes to the specified directory.
The remainder of this page is organized into the following sections.
The saveAll statement saves all opened classes in their current state. If the statement follows
an obfuscate statement then the classes will be saved in their obfuscated state.
If the directory specified by the saveAll statement doesn't exist then it will be created.
If saveAll is going to overwrite an already existing archive file then it will first rename the existing file by appending
the suffix ".BACKUP" to the end of its name.
The archiveCompression parameter allows you to determine the compression of any archive files created by the
saveAll statement. By default, the saveAll statement acts as if the value of archiveCompression
is asIs. The meaning of the different values of archiveCompression are listed below.
archiveCompression |
Effect |
| all |
All archive entries will be compressed. |
| none |
No archive entries will be compressed. |
| asIs |
If an entry in the original archive was compressed then the corresponding entry in the new archive will be compressed.
If an entry in the original archive was not compressed then the corresponding entry in the new archive will not be compressed.
|
The saveAll statement performs a good deal of special handling of
- class files opened from jar and zip archives,
- non-class files such as image and properties files opened from jar and zip archives,
- manifest, EJB deployment descriptor and service provider files.
See the File|SaveAll menu option documentation for more detail.
saveAll "c:\temp"; //Defaults to archiveCompression=asIs
saveAll archiveCompression=all "myRelativeDirectory";
"saveAll" ["archiveCompression" "=" ("all" | "none" | "asIs")] "\"" directoryName "\"" ";"
where directoryName is the name of the directory into which the class files are to be saved.
You can embed quotes within the directory name by using two consecutive quotes (ie. "") for each quote to be embedded.
|
|