Debian::Javahelper::ManifestSection(3) | Javahelper | Debian::Javahelper::ManifestSection(3) |
Debian::Javahelper::ManifestSection - Javahelper representation of a section in a Jar Manifest
use Debian::Javahelper::Manifest; my $main_sec = $manifest->get_section(MAIN_SECTION, 1); # set the Main-Class attribute $main_sec->set_value('Main-Class', 'org.site.app.AppStarter'); # read the classpath entry - may return undef if the attribute does not exist. my $cp = $main_sec->get_value('Class-Path'); # same as above except $cp will be '' if the attribute does not exist. $cp = $main_sec->get_value('Class-Path', 1); # returns a list of [$name, $value] pairs - note $name will be in the original # case. my @att = $main_sec->get_values();
This module is used to represent a Section in a Java Manifest.
Exported by default.
Generally you should not need to use this directly! The Debian::Javahelper::Manifest will create sections as they are needed. There is no support for creating a section and then adding it to a manifest after wards.
Note: $attr exists if an attribute matches $attr ignoring the case of the two. When $attr is created, the original case will be stored for later (for writing). Later updates to $attr will not affect the original case.
Returns undef if $attr is not present in the section, unless $empty is a truth-value. In this case it will return ''.
Modifying the list or the pairs will not affect the attributes in the section.
Note: The $attr part will be the original case of the attribute.
Debian::Javahelper::Manifest(3) - for how to obtain a section.
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.
2021-02-04 | 0.78 |