Warning: session_start(): open(/var/lib/php/sessions/sess_1p306188oef774bedqnd7a9q7h, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
tarInJar - repacks a .jar file, puts all files in bulk.tar [OK] [1024946]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1024946 // tarInJar - repacks a .jar file, puts all files in bulk.tar [OK]

JavaX fragment (include) [tags: use-pretranspiled]

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: 672 / 808
Version history: 8 change(s)
Referenced in: [show references]