]> source.dussan.org Git - jgit.git/commit
archive: Record executable and symlink bits 08/9008/3
authorJonathan Nieder <jrn@google.com>
Mon, 3 Dec 2012 18:41:25 +0000 (10:41 -0800)
committerJonathan Nieder <jrn@google.com>
Tue, 4 Dec 2012 23:34:07 +0000 (15:34 -0800)
commit7123cbf470ea2fa39379a4d914f0933063bbbdfe
tree06201abf5ffdd5af283eec23d12983760912eb6c
parent72ee3280e08ef9d4a99466f0dbd29f419b5445b7
archive: Record executable and symlink bits

Setting the mode for a zip entry is now as simple as
"entry.setUnixMode(mode)", so do that.

The test checks using the system's "zipinfo" command (from InfoZIP)
that the mode has been recorded correctly on systems that happen to
have a "zipinfo" command, using org.junit.Assume to distinguish them.

Change-Id: I4236c102fd76f18d01b2dc926eeb9b9fa11a61b7
org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/ArchiveTest.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java