Here you can find the source of stripManifest(Manifest manifestIn)
private static Manifest stripManifest(Manifest manifestIn)
//package com.java2s; //License from project: LGPL import java.util.Map; import java.util.jar.*; public class Main { private static Manifest stripManifest(Manifest manifestIn) { Manifest manifestOut = new Manifest(manifestIn); for (Map.Entry<String, Attributes> entry : manifestIn.getEntries().entrySet()) { manifestOut.getEntries().remove(entry.getKey()); }/*from www . ja va2 s . c o m*/ return manifestOut; } }