What is the best way to make a war file from within a web server using jar? My problem is, I don't know what directories and subdirectories to include. I've seen jar syntax: <prompt>jar <war app name>.war .
The dot at the end signifies copying everything in the current directory, but the war file created this way does'nt work If I'm in the "class" subdirectory when I create the war file.
What procedures should I follow to make a war file that deploys correctly when placed in C:\Tomcat\webapps\
Should I still use: <prompt>jar <war app name>.war . but, from another location?
Posting a step-by-step procedure for creating and deploying war files would be very handy for those of us tired of searching and buying books without answers.
Suppose tomcat is installed in c:\tomcat and your webapp's name is myWebapp. Also suppose you want the generated war file to go to the root of your c drive.