if you have your java directory in your 'path' you can type this command from anywhere.
jar -cvf filename.war *
So... if you can, navigate to your web apps directory under tomcat. go into the directory where you're creating the app.
jar -cvf filename.war *
In English, "compress everything in this directory into a file named filename.war"
(c=create, v=verbose, f=file)
Now you can copy filename.war to any the webapps directory on a new Tomcat Server.
The above command worked for me, but the documentation calls for a folder name, so if something changes in the java sdk, the * might need to be just a directory, instead of calling for all files. So a "." (or, of course, the full directory locale) might be in order. You might need to play with it.
or... if you're in unix/linux "./"... or maybe "./*" ?? give it all a try baby.
hope that helps anyone who might be fighting w/ it and couldn't get ANT to work properly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment