Extracting jar to specified directory

前端 未结 7 591
庸人自扰
庸人自扰 2021-01-31 06:58

I wanted to extract one of my jars to specified directory using jar command line utility.

If I understand this right -C option should to the tr

7条回答
  •  你的背包
    2021-01-31 07:23

    This is what I ended up using inside my .bat file. Windows only of course.

    set CURRENT_DIR=%cd%
    mkdir ./directoryToExtractTo
    cd ./directoryToExtractTo
    jar xvf %CURRENT_DIR%\myJar.jar
    cd %CURRENT_DIR%
    

提交回复
热议问题