title: Using Ant To Build War As a Folder
body: <p>I am using ant to build my war to deploy it. But ant builds the war as a file "webapp.war". I need to build it as a folder "webapp.war" how can I do it using ant?</p>
  
  <pre><code>   &lt;target name="war" depends="compile"&gt; 
        &lt;war destfile="dist/AntExample.war" 
  webxml="WebContent/WEB-INF/web.xml" keepcompression="false"&gt; 
           &lt;fileset dir="WebContent"/&gt; 
           &lt;lib dir="WebContent/WEB-INF/lib"/&gt; 
           &lt;classes dir="build/classes"/&gt;
          &lt;/war&gt; 
      &lt;/target&gt;
  </code></pre>