Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT <jar>: How NOT to include META-INF folder

 
K Mansoor
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all- I have been trying to make something (Spring 3 + JPA + Tomcat 7) work without luck since yesterday and after trial and (much) error found that the placement of META-INF was wrong in my war file. I had META-INF (and WEB-INF) at the root:

+mywar
---WEB-INF
---META-INF

apparently it should be :

+mywar
---WEB-INF
-------classes
-------META-INF

My question is how can I make Ant NOT to include a META-INF folder in the root of the war? i tried the options for controlling META-INF behavior, but there is just no way to shut it off, can somebody please help?
Thank you.
 
Kevin Marcus
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't specific any META-INF information to the <war> task. Instead, <copy> your desired information a META-INF directory where your classes are located and then the <war> task will copy the classes ans META-INF to WEB-INF/classes. (I could be more specific if I knew your directory layout and if you would have posted the <war> task you are using.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic