Debian::Javahelper::Manifest(3) | Javahelper | Debian::Javahelper::Manifest(3) |
Debian::Javahelper::Manifest - Javahelper representation of a Jar Manifest
use Debian::Javahelper::Java; my $manifest = ...; my $main_sec = $manifest->get_section(MAIN_SECTION); # Create if it does not exist. my $file_sec = $manifest->get_section("java/lang/Object.class", 1);
This module is used to represent a Java Manifest.
Exported by default.
Use the MAIN_SECTION constant to access the main section of the manifest.
Modifying the list will not change which sections are present in $manifest, but modifying a section in this list will also update the section in the manifest.
If an attribute in a given section is only present in one of the two manifests, then that attribute and its value will be in $manifest after merge returns.
If the attribute in a given section is present in both manifests, then the value from $other will be used.
This can be used to make a deep copy a manifest:
my $copy = Debian::Javahelper::Manifest->new(); $copy->merge($orig);
Debian::Javahelper::Java(3) - had parse/write methods for manifests. Debian::Javahelper::ManifestSection(3) - for how sections are handled.
Niels Thykier <niels@thykier.net>
Copyright 2010 by Niels Thykier
This module is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2.
2023-07-29 | 0.79 |