Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a war

 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. If somebodd has a minute, when using the command line, I can't seem to get my jsp's, jpgs, html, etc bundled...

c:\fuzzy> jar cvf fuzzy.war WEB-INF

All the jsp, html, etc are in the root C:\fuzzy directory. I think I am realizing the WEB-INF argument is telling the compiler to only look in there and it's grabbing all my classes and jar files, but I'm not sure how to tell it to look into the C:\fuzzy root. Thank you very much.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try

c:\fuzzy> jar cvf fuzzy.war .

The dot (.) tells it to use the current directory as the root.
 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic