Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60810
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add multiple JARs in a Single WAR file using ANT1.6 ?
 
Similar Threads
Deploying standalone app with Maven 2
Multiple war in an ear file
merge multiple documents (Eg: Tiff, DOC, PDF) in to a single TIFF file
How to put jar after creating it in war file's lib through Maven
Deployment on JBoss