title: IntelliJ generated Ant build overwrites my MANIFEST.MF
body: <p>I have a simple project in IntelliJ where i go to <em>Project structure -> Artifacts -> Add Jar from modules with dependencies -> copy to the output directory and link via manifest (manifest is placed in %ProjectDir%/resources/manifests/META-INF/MANIFEST.MF) -> OK -> OK</em></p>
  
  <p>Now, if I run <code>make</code>, the jar will be placed under <code>out/artifacts</code> and if I look inside the jar and open up the META-INF/MANIFEST.MF file it contains the correct Class-Path information. If I then go back into IntelliJ, generate an ant build and run it, the contents of META-INF/MANIFEST.MF inside the compiled jar now looks like this:</p>
  
  <p><code>Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.9.4
  Created-By: 1.7.0_80-b15 (Oracle Corporation)</code></p>
  
  <p>As you can see the <code>Class-Path</code> entry has been completely removed, and this prevents me from being able to use the jar from somewhere else.</p>
  
  <p>So my question is: Does anyone know why the ant build generated by intellij overwrites the MANIFEST.MF that is otherwise used by the built-in <code>make</code>functionality in intellij?</p>
  
  <p>I might also add that I generate this ant build because I want to do some simple stuff like copying the built jar to a different location after compilation.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>If I manually change the <code>&lt;jar ... filesetmanifest="mergewithoutmain"&gt;</code> to <code>&lt;jar ... filesetmanifest="merge"&gt;</code> in the generated ant script, at least the <code>Class-Path</code> from my original MANIFEST.MF appears in the MANIFEST.MF that gets copied into the jar file. However, I would really like to avoid having to manually change the generated ant script in this way.</p>