I have an Eclipse plugin for which I create the OSGi bundle JARs with Ant. I would like to sign them with the Ant task, but that overwrites the MANIFEST.MF contents with the class signatures, making the OSGi bundles unusable. The JDK jarsigner tool has the same behavior. The Eclipse PDE seems to have that functionality, but as far as I know you can only use it from within Eclipse. I want to be able to run my Ant build from the command line. Does anybody know of a simple way to append the class signatures to MANIFEST.MF instead of overwriting it?
Share
I don’t think the manifest is overwritten by default. Observe the following console script: