Jar linux 命令

jar 常規參數

# jar
Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -n  perform Pack200 normalization after creating a new archive
    -e  specify application entry point for stand-alone application 
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -P  preserve leading '/' (absolute path) and ".." (parent directory) components from file names
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file

壓縮jar 命令

# jar -cvf arrow-dataset-bundle.jar arrow-dataset*
added manifest
adding: arrow-dataset-0.17.0-Beta.jar(in = 270906) (out= 250789)(deflated 7%)
adding: arrow-dataset-0.17.0-Beta.jar.asc(in = 490) (out= 399)(deflated 18%)
adding: arrow-dataset-0.17.0-Beta-javadoc.jar(in = 707273) (out= 664668)(deflated 6%)
adding: arrow-dataset-0.17.0-Beta-javadoc.jar.asc(in = 490) (out= 398)(deflated 18%)
adding: arrow-dataset-0.17.0-Beta.pom(in = 3491) (out= 1200)(deflated 65%)
adding: arrow-dataset-0.17.0-Beta.pom.asc(in = 490) (out= 399)(deflated 18%)
adding: arrow-dataset-0.17.0-Beta-sources.jar(in = 65320) (out= 60935)(deflated 6%)
adding: arrow-dataset-0.17.0-Beta-sources.jar.asc(in = 490) (out= 398)(deflated 18%)
adding: arrow-dataset-0.17.0-Beta-tests.jar(in = 64545) (out= 63072)(deflated 2%)
adding: arrow-dataset-0.17.0-Beta-tests.jar.asc(in = 490) (out= 399)(deflated 18%)

解壓jar 命令

jar -xvf arrow-dataset-bundle.jar
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章