> From: Paul A. Hoadley [mailto:[EMAIL PROTECTED] > Subject: Re: Using getImplementationVersion() to read MANIFEST.MF > > 1. How can I read the value of the property from some arbitrary > class, say /WEB-INF/classes/some/package/Version.class?
You can use the following construct to create an InputStream pointing to the manifest file and then pass that to a Properties.load() to retrieve all the keys and values: Properties prop = new Properties(); prop.load(getServletContext().getResourceAsStream("/META-INF/MANIFEST.MF ")); Use appropriate methods of java.util.Properties to examine the key/value pair(s) you're interested in. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]