title: Jar got copied twice while creating war file from ANT
body: <p>I am newbie to ANT and trying a simple ANT script to create <code>.war</code> file of my project.<br>
  Here is my script<br>
  When I run this script everything works fine but <code>.jar</code> file present in <code>WebContent/WEB-INF/lib</code> are copied twice inside the <code>.war</code> file.   </p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  &lt;project name="AutoComplete"&gt;
       &lt;path id="compile.classpath"&gt;
          &lt;fileset dir="WebContent/WEB-INF/lib"&gt;
              &lt;include name="*.jar"/&gt;
          &lt;/fileset&gt;
      &lt;/path&gt;
  
      &lt;target name="init"&gt;
          &lt;mkdir dir="build/classes"/&gt;
      &lt;/target&gt;
  
      &lt;target name="compile" depends="init" &gt;
          &lt;javac includeantruntime="false" destdir="build/classes" debug="true" srcdir="src" &gt;
              &lt;classpath refid="compile.classpath"/&gt;
          &lt;/javac&gt;
      &lt;/target&gt;
  
      &lt;target name="build.war" depends="compile"&gt;
          &lt;war destfile="AutoComplete.war" webxml="WebContent/WEB-INF/web.xml"&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;
  
      &lt;target name="clean"&gt;
          &lt;delete dir="build" /&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Please let me know if I am making any blunder.  </p>
  
  <p>Thanks.</p>