title: BND Ant task - wrap non-OSGi jars
body: <p>I'm trying to use Ant <code>bndwrap</code> task to wrap non-OSGi jars in a directory. My current Ant configuration for this is:</p>
  
  <pre><code>&lt;target name="wrap-jars" description="Wrap non-OSGi jars"&gt;
      &lt;taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${biz.aQute:bnd:jar}"/&gt;
      &lt;bndwrap output="${dist.dir}/app-modules"&gt;
          &lt;fileset dir="${dist.dir}/app-modules" includes="*.jar" /&gt;
      &lt;/bndwrap&gt;
      &lt;move overwrite="true" todir="${dist.dir}/app-modules" &gt;
          &lt;fileset dir="${dist.dir}/app-modules" includes="*.bar" /&gt;
          &lt;mapper type="glob" from="*.bar" to="*.jar" /&gt;
      &lt;/move&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This works fine, but the problem is that it also wraps existing OSGi jar, which causes problems. For instance, I noticed it changes <code>Bundle-SymbolicName</code> header to some default value. It might be changing something else, which I don't want. I only want it to operate on jars that have no OSGi info at all.</p>
  
  <p>Is there some way to tell BND to ignore existing OSGi headers in manifest, or complete jars that are already OSGi-fied?</p>