Uses 578K of libraries. Click here for Pure Java version (2497L/17K).
svoid tarInJar_withMD5(File jarIn, File jarOut) ctex { print("tarInJar_withMD5 " + f2s(jarIn) + " => " + f2s(jarOut)); File tar = createTempFile("", ".tar"); print(" temp: " + f2s(tar)); temp tempDeleteFile(tar); zip2tar(jarIn, tar); temp ZipOutputStream zipOut = zipOutputStream(jarOut); file2zip(zipOut, tar, "bulk-" + md5(tar) + ".tar"); } svoid tarInJar_withMD5(File jarIn) { if (!fileExists(jarIn)) ret; File jarOut = fileInSameDirectory(jarIn, dropSuffixIC(".jar", jarIn.getName()) + ".repacked.jar"); renameFileToUniqueName(jarOut); // backup old version tarInJar_withMD5(jarIn, jarOut); } svoid tarInJar_withMD5(S jarIn) { tarInJar_withMD5(newFile(jarIn)); }
Began life as a copy of #1024946
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: | #1024956 |
Snippet name: | tarInJar_withMD5 - repacks a .jar file, puts all files in bulk-{md5}.tar [dev.] |
Eternal ID of this version: | #1024956/7 |
Text MD5: | 1faec90cc6df404d8875aa20fd5bafa0 |
Transpilation MD5: | a4a66d9e353d294b9353d568101bd723 |
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:37:43 |
Source code size: | 712 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 245 / 357 |
Version history: | 6 change(s) |
Referenced in: | [show references] |