Hi all,
I am posting here because I cannot find the answers through Google, and JAR files frequently do what I need. How do you add metadata to JAR files?
The Real Issue: I have a Chrome/Opera extension which is packaged up as a renamed ZIP file (i.e. JAR/OEX/CRX). I want these archived files to expose expose information (i.e. name, url, version, date) without extracting the files.
JAR archives often contain metadata stored in a meta.xml that does exactly what I need. If I simply compress a meta.xml file using a ZIP tool and rename to JAR, the content will be compressed and not used as metadata.
As I understand it, JAR is just a renamed ZIP. How do you embed metadata in a ZIP/JAR file?
Many thanks!
--Glen
I am posting here because I cannot find the answers through Google, and JAR files frequently do what I need. How do you add metadata to JAR files?
The Real Issue: I have a Chrome/Opera extension which is packaged up as a renamed ZIP file (i.e. JAR/OEX/CRX). I want these archived files to expose expose information (i.e. name, url, version, date) without extracting the files.
JAR archives often contain metadata stored in a meta.xml that does exactly what I need. If I simply compress a meta.xml file using a ZIP tool and rename to JAR, the content will be compressed and not used as metadata.
As I understand it, JAR is just a renamed ZIP. How do you embed metadata in a ZIP/JAR file?
Many thanks!
--Glen