Option | Description |
---|---|
t | Lists all the files in the djar archive. By itself only the file names are listed. If the v option is supplied, for each file name the file size, date and time are also listed. |
c | Creates a new archive, which is named using the f option. At least one additional file must be supplied to put in the archive. |
x | Extracts one or more files from the archive. If files are listed on the command line, only those files are extracted; otherwise all files are extracted. |
d | Displays one or more files from the archive. Works like the x option, except that files are printed to standard output rather than being extracted. |
u | Updates the archive with the files named on the command line. Any files that are listed and already exist in the archive, replace the existing file. Files not already in the archive are added. |
s | Signs the archive. A digital signature is calculated for each file currently in the archive, and a signature added to the manifest. Then a signature for each section of the manifest is calculated, along with a signature for the overall manifest, and placed in a separate signature block file. |
l | Seals the archive. In addition to being signed, the archive is encrypted, and djar allows no further modifications to the archive. |
v | Verify the archive. All signatures are checked, as well as CRCs for each file. |
Option | Description |
---|---|
v | Enables verbose mode. Various informational messages are displayed on standard output as the program runs. |
f | Use this option to specify the archive file name. Currently, this is required for all operations. |
p | Use this option to specify a password to use for encrypting (when adding files) or decrypting (when extracting/displaying files). |
e | Use this option to specify the package entry point file name for this archive. By specifying this, the engine can be given just the name of the djar file and is able to determine how to run the contents. This is only valid for the Create and Update commands. |
0 | When present, indicates that files should be added to the archive without compression. This is only valid for the Create and Update commands. |
c | Indicates that when verifying an archive, certificates should not be checked. Currently djar does not add certificates when signing/sealing, consequently the absence of a certificate is not treated as an error when verifying. Additionally, even if a certificate is present (if the jarsigner utility was used), the validity of the certificate is not checked. |
-C | Change directory during execution of the djar command. Files named after this option are found in the new directory referenced by –C. There may be multiple instances of –C in a single command. |