@staticmethod
def add_main_manifest_entry(jar, binary):
    """Creates a jar manifest for the given binary.

        If the binary declares a main then a 'Main-Class' manifest entry will be included.
        """
    main = binary.main
    if main is not None:
        jar.main(main)
