Uses 578K of libraries. Click here for Pure Java version (2268L/15K).
svoid tarInJar(File jarIn, File jarOut) ctex { print("tarInJar " + f2s(jarIn) + " => " + f2s(jarOut)); temp ZipOutputStream zipOut = zipOutputStream(jarOut); zipOut.putNextEntry(new ZipEntry("bulk.tar")); zip2tar(jarIn, zipOut); } svoid tarInJar(File jarIn) { if (!fileExists(jarIn)) ret; File jarOut = fileInSameDirectory(jarIn, dropSuffixIC(".jar", jarIn.getName()) + ".repacked.jar"); renameFileToUniqueName(jarOut); // backup old version tarInJar(jarIn, jarOut); } svoid tarInJar(S jarIn) { tarInJar(newFile(jarIn)); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024946 |
| Snippet name: | tarInJar - repacks a .jar file, puts all files in bulk.tar [OK] |
| Eternal ID of this version: | #1024946/9 |
| Text MD5: | 71da75deabb13ce03f49e10cbdb2f160 |
| Transpilation MD5: | 56b381b33f4d4580df5544cd2dd922a5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-31 16:01:47 |
| Source code size: | 558 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 451 / 613 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |