This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

building war with ant

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use ant to build my war and have the following two issues:
1. Unlike when i built my wars by hand, the wars here do not look the same, i.e. when i look at them in winzip, i do not see any of the files until i unzip them
2. I am specifying libs in directories and subdirectories. How do i tell ant to not keep the directory structure when building my war file.
My ant code is:
<target name="war" depends="jar">
<war destfile="C2G.war" compress="false" webxml="web.xml" manifest="manifest.txt">
<lib dir = "${jbuilder.home}/lib">
<include name="log4j-1.2.4.jar"/>
<lib dir="${jwsdp.home}/jaxb/lib" >
<include name="**/*.jar"/>
<lib dir="${jwsdp.home}/jaxp/lib">
<include name="**/*.jar"/>
<lib dir="${jwsdp.home}/jwsdp-shared/lib">
<include name="xsdlib.jar"/>
<include name="relaxngDatatype.jar"/>
<include name="namespace.jar"/>
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My suggestion is reading the ant document, then think what is wrong with your "requirement".
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic