M
Manish Hatwalne
I have added custom attributes to the manifest file (via ANT task), and I am
reading it in my code.
However, the custom attributes are missing when I read this manifest file in
the code. I have opened the jar with WinZip and have ensured that the
MANIFEST.MF file indeed contain these attributes, however the attributes my
code lists are -
Manifest-Version=1.0
Implementation-Title=Java Runtime Environment
Implementation-Vendor=Sun Microsystems, Inc.
Specification-Version=1.4
Specification-Title=Java Platform API Specification
Name=javax/swing/JApplet.class
Created-By=1.4.0_01 (Sun Microsystems Inc.)
Java-Bean=True
Implementation-Version=1.4.0_01
Specification-Vendor=Sun Microsystems, Inc.
I have no clue from where name attribute got inserted. The intended manifest
file is -
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.0_01-b03 (Sun Microsystems Inc.)
Implementation-Title: XXXXXXX
Built-By: manish
Build-Date: May 20 2004
Date-Format: yyyy/MM/dd HH:mm:ss
Major-Version: 0
Minor-Version: 50
Version: 0.50
Build-Number: 64
What could be the reason?
- Manish
reading it in my code.
However, the custom attributes are missing when I read this manifest file in
the code. I have opened the jar with WinZip and have ensured that the
MANIFEST.MF file indeed contain these attributes, however the attributes my
code lists are -
Manifest-Version=1.0
Implementation-Title=Java Runtime Environment
Implementation-Vendor=Sun Microsystems, Inc.
Specification-Version=1.4
Specification-Title=Java Platform API Specification
Name=javax/swing/JApplet.class
Created-By=1.4.0_01 (Sun Microsystems Inc.)
Java-Bean=True
Implementation-Version=1.4.0_01
Specification-Vendor=Sun Microsystems, Inc.
I have no clue from where name attribute got inserted. The intended manifest
file is -
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.0_01-b03 (Sun Microsystems Inc.)
Implementation-Title: XXXXXXX
Built-By: manish
Build-Date: May 20 2004
Date-Format: yyyy/MM/dd HH:mm:ss
Major-Version: 0
Minor-Version: 50
Version: 0.50
Build-Number: 64
What could be the reason?
- Manish