1 | static void zip2zip_exceptManifest(File inZip, ZipOutputStream outZip) ctex { |
2 | ZipFile zipFile = new ZipFile(inZip); |
3 | try { |
4 | Enumeration entries = zipFile.entries(); |
5 | while (entries.hasMoreElements()) { |
6 | ZipEntry entry = (ZipEntry) entries.nextElement(); |
7 | if (entry.isDirectory()) continue; |
8 | S name = entry.getName(); |
9 | //if (eq(name, "META-INF/MANIFEST.MF")) continue; |
10 | if (startsWith(name, "META-INF/")) continue; |
11 | |
12 | temp smartZipCompressionLevel(outZip, name); |
13 | outZip.putNextEntry(new ZipEntry(name)); |
14 | copyStreamAndCloseInput(zipFile.getInputStream(entry), outZip); |
15 | } |
16 | } finally { |
17 | zipFile.close(); |
18 | } |
19 | } |
Began life as a copy of #1001173
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011503 |
Snippet name: | zip2zip_exceptManifest - excludes all META-INF/ |
Eternal ID of this version: | #1011503/6 |
Text MD5: | 5eb4cb78a7ccd462679fda9afd33d195 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-31 21:35:47 |
Source code size: | 687 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 561 / 607 |
Version history: | 5 change(s) |
Referenced in: | [show references] |