• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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
 
Marshal
Posts: 67446
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As with any other type of file: by specifying an appropriate fileset element.
 
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
 
Arthur, where are your pants? Check under this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic