ManifestFile Property

The name of the manifest file.

Syntax

public string ManifestFile { get; set; }
Public Property ManifestFile As String

Default Value

""

Remarks

This property specifies the location of the manifest to be written to the jar archive.

The filename may be specified with or without a path. Paths may be relative or absolute, and should be specified in the format native to the host operating system. If the format is not native to the host operating system, the component will immediately attempt to convert it.

When Compress is invoked, the location of the manifest is determined according to ManifestFile and the CompressedName and DecompressedName fields of the Files collection. The collection will be updated immediately prior to compression, and additional entries will be added at the beginning if necessary. If ManifestFile is set to a nonempty string, its value will be written to the appropriate value of DecompressedName, overwriting any pre-existing value. If ManifestFile is set to an empty string, and any value of the CompressedName field in the Files collection has the value "META-INF/MANIFEST.MF", the corresponding value of DecompressedName will be used as the source of the manifest. If a source for the manifest is not specified, a default manifest will automatically be generated and added to the archive.

When Scan is called (either by the user or by Extract or ExtractAll), the location of the manifest will be determined, and the value of this property will be set to the corresponding value of the DecompressedName for that file. The value of ManifestFile may then be changed to write the manifest to a different location.

After calling Scan, "META-INF/MANIFEST.MF" may be passed as an argument to Extract to extract the manifest.

If during compression the file cannot be read, a trappable error will be generated.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 .NET Edition - Version 20.0 [Build 7720]