Java Jar Manifest generateEmptyManifest()

Here you can find the source of generateEmptyManifest()

Description

Generates a Jar Manifest based on the given parameters

License

Open Source License

Declaration

public static Manifest generateEmptyManifest() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.jar.Attributes;

import java.util.jar.Manifest;

public class Main {
    /**// ww  w .ja va2  s  .  co  m
     * Generates a Jar Manifest based on the given parameters
     * @return
     */
    public static Manifest generateEmptyManifest() {
        Manifest manifest = new Manifest();
        manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0");
        return manifest;
    }
}

Related

  1. createManifest()
  2. createManifest(Map customFields)
  3. createManifest(String manifestVerion, String mainClass, String jarInternalClasspath)
  4. createTestManifest(Attributes.Name name, String value)
  5. formatDisplay(String src, Manifest manifest)
  6. getAttribute(final Manifest manifest, final String name, final String defValue)
  7. getAttribute(String attributeName, Manifest manifest)
  8. getBundleClassPath(Manifest manifest)
  9. getBundleVersion(Manifest manifest)