On solaris and linux, j2se 1.3, 1.4 and 1.5:
when I add a file with executable permissions to the jar:
-rwxr--r-- 1 ngthomas staff 932 Oct 2 13:12 notepad.jnlp*
and then extract the file back from the jar:
-rw-r--r-- 1 ngthomas staff 932 Oct 2 13:22 notepad.jnlp
the executable permission is lost.
If I do the same thing with zip, the permission is preserved.
when I add a file with executable permissions to the jar:
-rwxr--r-- 1 ngthomas staff 932 Oct 2 13:12 notepad.jnlp*
and then extract the file back from the jar:
-rw-r--r-- 1 ngthomas staff 932 Oct 2 13:22 notepad.jnlp
the executable permission is lost.
If I do the same thing with zip, the permission is preserved.
- duplicates
-
JDK-6194856 Zip Files lose ALL ownership and permissions of the files
-
- Closed
-
- relates to
-
JDK-6299847 jar uvf commands doesn't restore group permission when updated with root user.
-
- Closed
-