Name: jk109818 Date: 12/12/2001
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
Description: edit an existing jar file.
Extract files found in the META-INF directory of the jar.
Update the archive specifying the META-INF directory.
jar reports META-INF/MANIFEST.MF "ignored" but is actually deleted from the
archive.
Below is command line sequence which may be used to recreate the issue.
(Note: when jar with missing manifest is added to *.EAR file the J2EE reference
implementation deploytool refuses to process the file.)
D:\rh\ejb\cfiles\bean>jar cvf test.jar META-INF
added manifest
ignoring entry META-INF/
adding: META-INF/ejb-jar.xml(in = 18421) (out= 1214)(deflated 93%)
D:\rh\ejb\cfiles\bean>jar tvf test.jar
0 Wed Nov 21 23:48:18 EST 2001 META-INF/
71 Wed Nov 21 23:48:20 EST 2001 META-INF/MANIFEST.MF
18421 Wed Nov 21 23:47:32 EST 2001 META-INF/ejb-jar.xml
D:\rh\ejb\cfiles\bean>jar xvf test.jar
created: META-INF/
extracted: META-INF/MANIFEST.MF
extracted: META-INF/ejb-jar.xml
D:\rh\ejb\cfiles\bean>jar tvf test.jar
0 Wed Nov 21 23:48:18 EST 2001 META-INF/
71 Wed Nov 21 23:48:20 EST 2001 META-INF/MANIFEST.MF
18421 Wed Nov 21 23:47:32 EST 2001 META-INF/ejb-jar.xml
D:\rh\ejb\cfiles\bean>jar uvf test.jar META-INF
ignoring entry META-INF/
ignoring entry META-INF/MANIFEST.MF
adding: META-INF/ejb-jar.xml(in = 18421) (out= 1214)(deflated 93%)
D:\rh\ejb\cfiles\bean>jar tvf test.jar
18421 Wed Nov 21 23:48:34 EST 2001 META-INF/ejb-jar.xml
D:\rh\ejb\cfiles\bean>
(Review ID: 136122)
======================================================================