Home > Back-end >  A question about the jar and war
A question about the jar and war

Time:09-25

Packaging is done?
I, for example, if the project is very big, is a large software, at least a few G), that in this case I change one or two files, also want to repack the entire project? That will slow?

CodePudding user response:

refer to the original poster singing sound Amadues response:
packaging is done?
I, for example, if the project is very big, is a large software, at least a few G), that in this case I change one or two files, also want to repack the entire project? That will slow?


Don't have to repack, can update package files

CodePudding user response:

You such a big project, there must be a continuous integration, itself has a new package out every day

CodePudding user response:

reference 1st floor qq_39936465 response:
Quote: refer to the original poster singing sound Amadues response:
packing is done?
I, for example, if the project is very big, is a large software, at least a few G), that in this case I change one or two files, also want to repack the entire project? That will slow?


Don't need to repack, can update package file

How to operate?

CodePudding user response:

reference sound sound Amadues reply: 3/f
Quote: refer to 1st floor qq_39936465 response:
Quote: refer to the original poster singing sound Amadues response:
packing is done?
I, for example, if the project is very big, is a large software, at least a few G), that in this case I change one or two files, also want to repack the entire project? That will slow?


Don't need to repack, can update package file

How to operate?


Method one: by the jar command
The usage of the jar command:

Here is a jar command to help illustrate:

Usage: jar {ctxui} [vfm0Me] [jar - file] [manifest - file] [entry - point] [dir] - C files...

Options include:
- c to create a new archive file
-t list file directory
- x decompression of the filed (or all) specified file
-u update existing archive file
- v in the standard output to generate detailed output
The -f specified file filename
The -m contains information specified in the listing file list
- e for ties of independent application to an executable jar file
Specify the application entry point
0 only stores; Do not use any ZIP
- M not create entries listing file
-i is designated as the jar file generated index information
- C change for the specified directory and contains the files
  • Related