Я читаю путь из json файла
- $ path = zoomdata \ conf \ consul.conf.d \ f1.txt
- имя файла: f1.txt
Я использую следующую команду
jar xf jar1.jar "$path"
Я использую Poweshell
json
{
"name": "zipZoom",
"extension": "jar",
"change_flag": "TRUE",
"unpack": "TRUE",
"thirdparty_version": "",
"fileinfo": [
{
"fileName": "edc-mssql.properties",
"file_extraction_path": "zoomdata\\conf\\",
"file_destination_path": "release\\installers\\11.3.5.x\\setupfiles\\botinsight\\zoomdata"
},
{
"fileName": "query-engine.properties",
"file_extraction_path": "zoomdata\\conf\\",
"file_destination_path": "release\\installers\\11.3.5.x\\setupfiles\\botinsight\\zoomdata"
},
{
"fileName": "consul.json",
"file_extraction_path": "zoomdata\\conf\\consul.conf.d",
"file_destination_path": "release\\installers\\11.3.5.x\\setupfiles\\botinsight\\zoomdata"
}
]
}