Libraryless. Click here for Pure Java version (4715L/27K).
1 | svoid mergeJars_manifestFromFirst(File... insAndOut) {
|
2 | mergeJars_manifestFromFirst(dropLast(wrapAsList(insAndOut)), last(insAndOut)); |
3 | } |
4 | |
5 | svoid mergeJars_manifestFromFirst(L<File> in, File out) ctex {
|
6 | new Set<S> set; |
7 | var it = iterator(in); |
8 | if (!it.hasNext()) |
9 | fail("No input jars");
|
10 | {
|
11 | temp ZipOutputStream zip = newZipOutputStream(out); |
12 | zip2zip_collectFiles(it.next(), zip, set); |
13 | while (it.hasNext()) |
14 | zip2zip_exceptManifest2(it.next(), zip, set); |
15 | zip.close(); |
16 | } |
17 | print("Wrote " + f2s(out));
|
18 | } |
Began life as a copy of #1019059
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033331 |
| Snippet name: | mergeJars_manifestFromFirst |
| Eternal ID of this version: | #1033331/5 |
| Text MD5: | f72c96084dc2efdaf8c12db66491a73e |
| Transpilation MD5: | 6e61ded661776da0e4853ad82850c7be |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-23 05:59:31 |
| Source code size: | 546 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 407 / 507 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |