This class provides information from a manifest file for a given archive file.

Serializable:

No

Constructor(s)

ArchiveInfo(INPUT fileName AS CHARACTER)
fileName
A CHARACTER expression that represents the name of the manifest file, which can be located via the PROPATH or an absolute file name.
Note: The constructor raises an error if:
  • the file is not an archive file (.apl).
  • the archive file cannot be located or opened.
  • the manifest file (MANIFEST.MF) cannot be located or opened.
  • validation fails (if required).

Super Class

Progress.Lang.Object class

Interfaces

This class does not implement interfaces (beyond those it inherits from its base class).

Public Properties

BuildDate property Component property
FileName property (ArchiveInfo) IsSigned property
SignaturePolicy property Title property
ValidationPolicy property Vendor property
VendorId property Version property

Public Methods

GetValue( ) method (ArchiveInfo)

Example

The following example instantiates a new ArchiveInfo class for an archive file named myfile.apl, displays built-in properties, and retrieves a custom property.

USING Progress.Archive.*.
VAR ArchiveInfo myLibInfo.
myLibInfo = new ArchiveInfo("myfile.apl").

// Display built-in properties of the manifest file
MESSAGE "BuildDate: " myLibInfo.BuildDate SKIP
"Component: " myLibInfo.Component SKIP
"FileName: " myLibInfo.FileName SKIP
"IsSigned: " myLibInfo.IsSigned SKIP
"SignaturePolicy: " myLibInfo.SignaturePolicy SKIP
"Title: " myLibInfo.Title SKIP
"ValidationPolicy: " myLibInfo.ValidationPolicy SKIP
"Vendor: " myLibInfo.Vendor SKIP
"VendorId: " myLibInfo.VendorID SKIP
"Version: " myLibInfo.Version.
 
// Retrieve a custom property
MESSAGE "Custom1:" myLibInfo.GetValue("Custom1").