[PJUG Javamail] javac -version in MANIFEST.MF ?
Send Here
component0 at yahoo.com
Mon Jun 15 18:36:20 EDT 2009
Don't know if anyone replied yet (I'm receiving a digest), but I just realized that ant <jar> already added this header, which is mostly what I had wanted:
Created-By: 1.6.0_03-b05 (Sun Microsystems Inc.)
"java -version" returns "build 1.6.0_03-b05", and "javac -version" returns "1.6.0_07", but this is close enough.
________________________________
From: Send Here <component0 at yahoo.com>
To: javamail at pjug.org
Sent: Monday, June 15, 2009 12:58:22 PM
Subject: javac -version in MANIFEST.MF ?
Is there a standard manifest header or standard practice for publishing the "javac -version" used in compiling the .class files inside a JAR? "Specification-Version" seems like an ideal header to show the version of your application, but then you'd need a second header to record the version of javac used to compile.
I'm working in several environments right now with multiple javac versions and it's my understanding that you cannot successfully run one jvm on a combination of class files built with different major versions of the compiler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20090615/712fb636/attachment.html
More information about the Javamail
mailing list