The (jar) tool manifest file information is broken in JDK1.2Beta4-E
build.
When creating a jar file with the latest JDK1.2Beta4-E build the
manifest file contains no information or wrong information. The
"-m" option of the (jar) tool does not store the manifest file
information is should. Here are the examples:
-----------
TEST CASE 1
-----------
% jar cvf jar1.jar dir
adding: dir/ (in=0) (out=0) (stored 0%)
adding: dir/images/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/s.awake.gif (in=537) (out=398) (deflated 25%)
adding: dir/images/SCCS/s.stop.gif (in=573) (out=400) (deflated 30%)
adding: dir/images/SCCS/s.right1.gif (in=577) (out=399) (deflated 30%)
adding: dir/images/SCCS/s.right2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.scratch1.gif (in=593) (out=415) (deflated 30%)
adding: dir/images/SCCS/s.scratch2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.sleep1.gif (in=512) (out=375) (deflated 26%)
adding: dir/images/SCCS/s.sleep2.gif (in=522) (out=386) (deflated 26%)
adding: dir/images/SCCS/s.yawn.gif (in=581) (out=409) (deflated 29%)
adding: dir/images/right2.gif (in=142) (out=145) (deflated -2%)
adding: dir/images/awake.gif (in=152) (out=157) (deflated -3%)
adding: dir/images/yawn.gif (in=142) (out=147) (deflated -3%)
adding: dir/images/stop.gif (in=138) (out=143) (deflated -3%)
adding: dir/images/right1.gif (in=136) (out=141) (deflated -3%)
adding: dir/images/scratch2.gif (in=141) (out=146) (deflated -3%)
adding: dir/images/scratch1.gif (in=146) (out=151) (deflated -3%)
adding: dir/images/sleep1.gif (in=135) (out=140) (deflated -3%)
adding: dir/images/sleep2.gif (in=141) (out=146) (deflated -3%)
adding: dir/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/SCCS/s.Neko2$1.class (in=1534) (out=997) (deflated 35%)
adding: dir/SCCS/s.Neko2$2.class (in=1538) (out=996) (deflated 35%)
adding: dir/SCCS/s.Neko2.class (in=6298) (out=3455) (deflated 45%)
adding: dir/SCCS/s.Neko2.html (in=447) (out=286) (deflated 36%)
adding: dir/SCCS/s.Neko2.java (in=5856) (out=1783) (deflated 69%)
adding: dir/SCCS/s.ScrollingTextThread.class (in=3526) (out=2065) (deflated 41%)
adding: dir/Neko2.class (in=4336) (out=2389) (deflated 44%)
adding: dir/Neko2$1.class (in=879) (out=544) (deflated 38%)
adding: dir/Neko2.java (in=5539) (out=1605) (deflated 71%)
adding: dir/Neko2$2.class (in=880) (out=545) (deflated 38%)
adding: dir/Neko2.html (in=130) (out=98) (deflated 24%)
adding: dir/ScrollingTextThread.class (in=2314) (out=1360) (deflated 41%)
The MANIFEST file contains only:
% jar xf jar1.jar
% cat META-INF/MANIFEST.MF
Manifest-Version: 1.0^M
^M
The MANIFEST file should have contained:
Manifest-Version: 1.0^M
Created-By: Manifest JDK 1.2beta4^M
^M
Name: dir/images/SCCS/s.awake.gif^M
^M
Name: dir/images/SCCS/s.stop.gif^M
^M
Name: dir/images/SCCS/s.right1.gif^M
^M
Name: dir/images/SCCS/s.right2.gif^M
^M
Name: dir/images/SCCS/s.scratch1.gif^M
^M
Name: dir/images/SCCS/s.scratch2.gif^M
... ... ...
-----------
TEST CASE 2
-----------
% cat manifest
Class-Path: servlet.jar infobus.jar
Package-Sealed: true
Archive-Sealed: false
% jar cvfm jar1.jar manifest dir
adding: dir/ (in=0) (out=0) (stored 0%)
adding: dir/images/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/s.awake.gif (in=537) (out=398) (deflated 25%)
adding: dir/images/SCCS/s.stop.gif (in=573) (out=400) (deflated 30%)
adding: dir/images/SCCS/s.right1.gif (in=577) (out=399) (deflated 30%)
adding: dir/images/SCCS/s.right2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.scratch1.gif (in=593) (out=415) (deflated 30%)
adding: dir/images/SCCS/s.scratch2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.sleep1.gif (in=512) (out=375) (deflated 26%)
adding: dir/images/SCCS/s.sleep2.gif (in=522) (out=386) (deflated 26%)
adding: dir/images/SCCS/s.yawn.gif (in=581) (out=409) (deflated 29%)
adding: dir/images/right2.gif (in=142) (out=145) (deflated -2%)
adding: dir/images/awake.gif (in=152) (out=157) (deflated -3%)
adding: dir/images/yawn.gif (in=142) (out=147) (deflated -3%)
adding: dir/images/stop.gif (in=138) (out=143) (deflated -3%)
adding: dir/images/right1.gif (in=136) (out=141) (deflated -3%)
adding: dir/images/scratch2.gif (in=141) (out=146) (deflated -3%)
adding: dir/images/scratch1.gif (in=146) (out=151) (deflated -3%)
adding: dir/images/sleep1.gif (in=135) (out=140) (deflated -3%)
adding: dir/images/sleep2.gif (in=141) (out=146) (deflated -3%)
adding: dir/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/SCCS/s.Neko2$1.class (in=1534) (out=997) (deflated 35%)
adding: dir/SCCS/s.Neko2$2.class (in=1538) (out=996) (deflated 35%)
adding: dir/SCCS/s.Neko2.class (in=6298) (out=3455) (deflated 45%)
adding: dir/SCCS/s.Neko2.html (in=447) (out=286) (deflated 36%)
adding: dir/SCCS/s.Neko2.java (in=5856) (out=1783) (deflated 69%)
adding: dir/SCCS/s.ScrollingTextThread.class (in=3526) (out=2065) (deflated 41%)
adding: dir/Neko2.class (in=4336) (out=2389) (deflated 44%)
adding: dir/Neko2$1.class (in=879) (out=544) (deflated 38%)
adding: dir/Neko2.java (in=5539) (out=1605) (deflated 71%)
adding: dir/Neko2$2.class (in=880) (out=545) (deflated 38%)
adding: dir/Neko2.html (in=130) (out=98) (deflated 24%)
adding: dir/ScrollingTextThread.class (in=2314) (out=1360) (deflated 41%)
The MANIFEST file contains only:
% jar xf jar1.jar
% cat META-INF/MANIFEST.MF
^M
The MANIFEST file should have contained:
Manifest-Version: 1.0^M
Class-Path: servlet.jar infobus.jar^M
Package-Sealed: true^M
Archive-Sealed: false^M
Created-By: Manifest JDK 1.2beta4^M
^M
Name: dir/images/SCCS/s.awake.gif^M
^M
Name: dir/images/SCCS/s.stop.gif^M
^M
Name: dir/images/SCCS/s.right1.gif^M
^M
Name: dir/images/SCCS/s.right2.gif^M
^M
Name: dir/images/SCCS/s.scratch1.gif^M
... ... ...
To reproduce the problem run the Jar Test Suite.
build.
When creating a jar file with the latest JDK1.2Beta4-E build the
manifest file contains no information or wrong information. The
"-m" option of the (jar) tool does not store the manifest file
information is should. Here are the examples:
-----------
TEST CASE 1
-----------
% jar cvf jar1.jar dir
adding: dir/ (in=0) (out=0) (stored 0%)
adding: dir/images/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/s.awake.gif (in=537) (out=398) (deflated 25%)
adding: dir/images/SCCS/s.stop.gif (in=573) (out=400) (deflated 30%)
adding: dir/images/SCCS/s.right1.gif (in=577) (out=399) (deflated 30%)
adding: dir/images/SCCS/s.right2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.scratch1.gif (in=593) (out=415) (deflated 30%)
adding: dir/images/SCCS/s.scratch2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.sleep1.gif (in=512) (out=375) (deflated 26%)
adding: dir/images/SCCS/s.sleep2.gif (in=522) (out=386) (deflated 26%)
adding: dir/images/SCCS/s.yawn.gif (in=581) (out=409) (deflated 29%)
adding: dir/images/right2.gif (in=142) (out=145) (deflated -2%)
adding: dir/images/awake.gif (in=152) (out=157) (deflated -3%)
adding: dir/images/yawn.gif (in=142) (out=147) (deflated -3%)
adding: dir/images/stop.gif (in=138) (out=143) (deflated -3%)
adding: dir/images/right1.gif (in=136) (out=141) (deflated -3%)
adding: dir/images/scratch2.gif (in=141) (out=146) (deflated -3%)
adding: dir/images/scratch1.gif (in=146) (out=151) (deflated -3%)
adding: dir/images/sleep1.gif (in=135) (out=140) (deflated -3%)
adding: dir/images/sleep2.gif (in=141) (out=146) (deflated -3%)
adding: dir/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/SCCS/s.Neko2$1.class (in=1534) (out=997) (deflated 35%)
adding: dir/SCCS/s.Neko2$2.class (in=1538) (out=996) (deflated 35%)
adding: dir/SCCS/s.Neko2.class (in=6298) (out=3455) (deflated 45%)
adding: dir/SCCS/s.Neko2.html (in=447) (out=286) (deflated 36%)
adding: dir/SCCS/s.Neko2.java (in=5856) (out=1783) (deflated 69%)
adding: dir/SCCS/s.ScrollingTextThread.class (in=3526) (out=2065) (deflated 41%)
adding: dir/Neko2.class (in=4336) (out=2389) (deflated 44%)
adding: dir/Neko2$1.class (in=879) (out=544) (deflated 38%)
adding: dir/Neko2.java (in=5539) (out=1605) (deflated 71%)
adding: dir/Neko2$2.class (in=880) (out=545) (deflated 38%)
adding: dir/Neko2.html (in=130) (out=98) (deflated 24%)
adding: dir/ScrollingTextThread.class (in=2314) (out=1360) (deflated 41%)
The MANIFEST file contains only:
% jar xf jar1.jar
% cat META-INF/MANIFEST.MF
Manifest-Version: 1.0^M
^M
The MANIFEST file should have contained:
Manifest-Version: 1.0^M
Created-By: Manifest JDK 1.2beta4^M
^M
Name: dir/images/SCCS/s.awake.gif^M
^M
Name: dir/images/SCCS/s.stop.gif^M
^M
Name: dir/images/SCCS/s.right1.gif^M
^M
Name: dir/images/SCCS/s.right2.gif^M
^M
Name: dir/images/SCCS/s.scratch1.gif^M
^M
Name: dir/images/SCCS/s.scratch2.gif^M
... ... ...
-----------
TEST CASE 2
-----------
% cat manifest
Class-Path: servlet.jar infobus.jar
Package-Sealed: true
Archive-Sealed: false
% jar cvfm jar1.jar manifest dir
adding: dir/ (in=0) (out=0) (stored 0%)
adding: dir/images/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/images/SCCS/s.awake.gif (in=537) (out=398) (deflated 25%)
adding: dir/images/SCCS/s.stop.gif (in=573) (out=400) (deflated 30%)
adding: dir/images/SCCS/s.right1.gif (in=577) (out=399) (deflated 30%)
adding: dir/images/SCCS/s.right2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.scratch1.gif (in=593) (out=415) (deflated 30%)
adding: dir/images/SCCS/s.scratch2.gif (in=585) (out=408) (deflated 30%)
adding: dir/images/SCCS/s.sleep1.gif (in=512) (out=375) (deflated 26%)
adding: dir/images/SCCS/s.sleep2.gif (in=522) (out=386) (deflated 26%)
adding: dir/images/SCCS/s.yawn.gif (in=581) (out=409) (deflated 29%)
adding: dir/images/right2.gif (in=142) (out=145) (deflated -2%)
adding: dir/images/awake.gif (in=152) (out=157) (deflated -3%)
adding: dir/images/yawn.gif (in=142) (out=147) (deflated -3%)
adding: dir/images/stop.gif (in=138) (out=143) (deflated -3%)
adding: dir/images/right1.gif (in=136) (out=141) (deflated -3%)
adding: dir/images/scratch2.gif (in=141) (out=146) (deflated -3%)
adding: dir/images/scratch1.gif (in=146) (out=151) (deflated -3%)
adding: dir/images/sleep1.gif (in=135) (out=140) (deflated -3%)
adding: dir/images/sleep2.gif (in=141) (out=146) (deflated -3%)
adding: dir/SCCS/ (in=0) (out=0) (stored 0%)
adding: dir/SCCS/s.Neko2$1.class (in=1534) (out=997) (deflated 35%)
adding: dir/SCCS/s.Neko2$2.class (in=1538) (out=996) (deflated 35%)
adding: dir/SCCS/s.Neko2.class (in=6298) (out=3455) (deflated 45%)
adding: dir/SCCS/s.Neko2.html (in=447) (out=286) (deflated 36%)
adding: dir/SCCS/s.Neko2.java (in=5856) (out=1783) (deflated 69%)
adding: dir/SCCS/s.ScrollingTextThread.class (in=3526) (out=2065) (deflated 41%)
adding: dir/Neko2.class (in=4336) (out=2389) (deflated 44%)
adding: dir/Neko2$1.class (in=879) (out=544) (deflated 38%)
adding: dir/Neko2.java (in=5539) (out=1605) (deflated 71%)
adding: dir/Neko2$2.class (in=880) (out=545) (deflated 38%)
adding: dir/Neko2.html (in=130) (out=98) (deflated 24%)
adding: dir/ScrollingTextThread.class (in=2314) (out=1360) (deflated 41%)
The MANIFEST file contains only:
% jar xf jar1.jar
% cat META-INF/MANIFEST.MF
^M
The MANIFEST file should have contained:
Manifest-Version: 1.0^M
Class-Path: servlet.jar infobus.jar^M
Package-Sealed: true^M
Archive-Sealed: false^M
Created-By: Manifest JDK 1.2beta4^M
^M
Name: dir/images/SCCS/s.awake.gif^M
^M
Name: dir/images/SCCS/s.stop.gif^M
^M
Name: dir/images/SCCS/s.right1.gif^M
^M
Name: dir/images/SCCS/s.right2.gif^M
^M
Name: dir/images/SCCS/s.scratch1.gif^M
... ... ...
To reproduce the problem run the Jar Test Suite.
- duplicates
-
JDK-4160559 JAR tool does not generate any manifest entries at all for the files specified.
-
- Closed
-
- relates to
-
JDK-4138917 Regression: JAR Tool extract (x) option broken in JDK1.2Beta4-F.
-
- Closed
-