A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Dec 23, 2003
Nov 04, 2009 19:49:16
I want to extract a war file into a specific folder, which option I should use ?
This doesn't work : jar xvf my.war -d newFolder
Joined: Sep 11, 2006
Nov 04, 2009 20:23:26
JAR command doesn't have -d option. You may want to use another command, such as unzip, e.g.
unzip my.war -d newFolder
If you insist of using a JAR command, what you can do is to create a shell script that create a directory and move the jar file into that directory and do the extraction from there.
Hope it helps.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
I agree. Here's the link:
subject: Jar command
how to extract
how to merge war file and ear file?
how to convert war file into original files
Using DOS commands in Java
How To: Path of JBoss Server deployment folder !
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015