Here you can find the source of getAttribute(final Manifest manifest, final String name, final String defValue)
public static String getAttribute(final Manifest manifest, final String name, final String defValue)
//package com.java2s; //License from project: Open Source License import java.util.jar.Manifest; public class Main { public static String getAttribute(final Manifest manifest, final String name, final String defValue) { if (manifest == null) { return defValue; }/*from w w w . j a v a 2s.c om*/ return manifest.getMainAttributes().getValue(name) != null ? manifest.getMainAttributes().getValue(name) : defValue; } }