Getting Manifest Information

manifest(String module_name { , handler( key, value ) } ) or
(Class class { , handler( key, value ) } ) or
(File file { , handler( key, value ) } ) or
(JarFile jarfile { , handler( key, value ) } )

manifest() prints the manifest information of the specified class or module.

If handler is specified and is a function which takes two arguments, the function is called with the attribute key and the attribute value.

e.g. (1):
manifest("pnuts.lib")
e.g. (2):
m = map()
manifest(class pnuts.lang.Pnuts, function (k, v) m.put(k, v))

Version Information

versionInfo(String module_name) or
(Class class)

versionInfo() returns a java.lang.Package object which represents the version information of the specified class or module. When a module name is specified, the initialization class is required; that is, init.class is used, not init.pnut.

This function requires JDK1.2 or better.

e.g. (1):
versionInfo("pnuts.lib")
e.g. (2):
versionInfo(class pnuts.lang.Pnuts)