title: Ant overwritting custom manifest file
body: <p>I am creating a jar with Ant that also uses a custom manifest file.  The build.xml file builds everything properly.  However, when I check the manifest file in the jar, my properties are not there.  It looks like it is being replaced with the default MANIFEST.MF file built by Ant.  My build file is below:</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;property name="src" location="src" /&gt;
  &lt;property name="build" location="build" /&gt;
  &lt;property name="dist" location="dist" /&gt;
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${build}" /&gt;
      &lt;delete dir="${dist}" /&gt;
  &lt;/target&gt;
  
  &lt;target name="main" depends="compile, dist, build"&gt;
      &lt;echo&gt;
          Building the .jar file.
      &lt;/echo&gt;
  &lt;/target&gt;
  
  &lt;target name="build"&gt;
      &lt;mkdir dir="${build}" /&gt;
      &lt;mkdir dir="${build}/META-INF" /&gt;
  &lt;/target&gt;
  
  &lt;target name="compile" depends="build"&gt;
      &lt;javac srcdir="${src}" destdir="${build}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="dist" depends="compile"&gt;
      &lt;mkdir dir="${dist}/lib" /&gt;
      &lt;manifest file="${build}/META-INF/MANIFEST.MF"&gt;
          &lt;attribute name="Class-Path" value="MyGame.jar" /&gt;
          &lt;attribute name="Main-Class" value="game.Game"/&gt;    
      &lt;/manifest&gt;
  
      &lt;jar jarfile="${dist}/lib/MyGame.jar" basedir="${build}" /&gt;
  
  &lt;/target&gt;
  </code></pre>
  
  <p></p>
  
  <p>What do I have to change to specify the custom manifest instead of the default Ant MANIFEST.MF file?</p>