commit | 2087d504991b8fcc355c0d051c8887d1a6f6f1f4 | [log] [tgz] |
---|---|---|
author | Simon Stewart <simons@fb.com> | Thu Sep 12 07:41:53 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Thu Sep 19 15:25:01 2013 -0700 |
tree | e4a1957aa57dedd1c8f73cfa495bf7e00256b7eb | |
parent | ae2b0ba538e015e4516ebf8fe4174d45b0fd894e [diff] |
Introduce our own implementation of a ZipOutputStream. Summary: We currenty depend on the command line zip command in order to create zip files. This means that we cannot currently build an APK on Windows, which is obviously suboptimal. In the ideal world, we'd use something that ships with the JRE, but it turns out that the two obvious candidates fail. Our requirements are: 1) Can support changing the deflation level per-file. 2) Can support writing the same file more than once to the zip, overwriting existing entries. 3) As 2, but appending the new entry. ZipOutputStream meets 1, but 2 or 3. ZipFileSystem supports 2, but not 1 or 3. The classes in this diff allow us to support all three options. Test Plan: buck test --all
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0