从文件获取清单
//package com.nowjava;//from 时代Java公众号 import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.jar.Manifest; public class Main { public static Manifest getManifestFromFile(File manifestFile) throws IOException { Manifest manifest = new Manifest(); manifest.read(new FileInputStream(manifestFile));/*N o w J a v a . c o m*/ return manifest; } }