wood burning stoves*
The moose likes Ant, Maven and Other Build Tools and the fly likes How to add multiple JARs in a Single WAR file using ANT1.6 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to add multiple JARs in a Single WAR file using ANT1.6 ?" Watch "How to add multiple JARs in a Single WAR file using ANT1.6 ?" New topic
Author

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

Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
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

Joined: Jan 10, 2002
Posts: 61298
    
  66

As with any other type of file: by specifying an appropriate fileset element.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pratik Lohia
Ranch Hand

Joined: May 05, 2005
Posts: 88
<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
 
GeeCON Prague 2014
 
subject: How to add multiple JARs in a Single WAR file using ANT1.6 ?