问题
How can I extract a .war file with Linux command prompt?
回答1:
Using unzip
unzip -c whatever.war META-INF/MANIFEST.MF
It will print the output in terminal.
And for extracting all the files,
unzip whatever.war
Using jar
jar xvf test.war
回答2:
Or
jar xvf myproject.war
回答3:
A war file is just a zip file with a specific directory structure. So you can use unzip or the jar tool for unzipping.
But you probably don't want to do that. If you add the war file into the webapps directory of Tomcat the Tomcat will take care of extracting/installing the war file.
回答4:
You can use the unzip
command.
来源:https://stackoverflow.com/questions/3833578/linux-command-for-extracting-war-file