Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add multiple JARs in a Single WAR file using ANT1.6 ?

 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
Can anyobody tell me How to add multiple JARs in a Single WAR file using Ant1.6.3?

Thanks in advance
SHRINIWAS MUJUMDAR
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with any other type of file: by specifying an appropriate fileset element.
 
Pratik Lohia
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<war destfile="${build.dir}\strideWeb.war"
basedir="${build.dir}\strideWeb"
webxml="${build.dir}\strideWeb\WebContent\WEB-INF\web.xml"
includes="**\*.*"
excludes="WebContent\WEB-INF\**\*.*"
manifest="${build.dir}\strideWeb\WebContent\META-INF\MANIFEST.MF">

<webinf dir="${build.dir}\strideWeb\WebContent\WEB-INF">

</webinf>
</war>

The basedir path contains all the jars I want to include in my war file.
Hope this helps
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic