Libraryless. Click here for Pure Java version (4715L/27K).
svoid mergeJars_manifestFromFirst(File... insAndOut) { mergeJars_manifestFromFirst(dropLast(wrapAsList(insAndOut)), last(insAndOut)); } svoid mergeJars_manifestFromFirst(L<File> in, File out) ctex { new Set<S> set; var it = iterator(in); if (!it.hasNext()) fail("No input jars"); { temp ZipOutputStream zip = newZipOutputStream(out); zip2zip_collectFiles(it.next(), zip, set); while (it.hasNext()) zip2zip_exceptManifest2(it.next(), zip, set); zip.close(); } print("Wrote " + f2s(out)); }
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: | 175 / 229 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |