bndwrap
Antタスクを使用して非 OSGi jar をディレクトリにラップしようとしています。これに対する私の現在のAnt構成は次のとおりです。
<target name="wrap-jars" description="Wrap non-OSGi jars">
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${biz.aQute:bnd:jar}"/>
<bndwrap output="${dist.dir}/app-modules">
<fileset dir="${dist.dir}/app-modules" includes="*.jar" />
</bndwrap>
<move overwrite="true" todir="${dist.dir}/app-modules" >
<fileset dir="${dist.dir}/app-modules" includes="*.bar" />
<mapper type="glob" from="*.bar" to="*.jar" />
</move>
</target>
これは正常に動作しますが、問題は既存の OSGi jar もラップすることであり、これが問題を引き起こします。たとえば、Bundle-SymbolicName
ヘッダーがデフォルト値に変更されていることに気付きました。それは私が望んでいない何か他のものを変えているかもしれません。OSGi情報がまったくないjarでのみ動作させたいです。
マニフェスト内の既存の OSGi ヘッダーを無視するように BND に指示する方法、または既に OSGi 化されている完全な jar を実行する方法はありますか?