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

19
LINES

< > BotCompany Repo | #1018036 // Zip all JavaX Include snippets (from local snippets DB) [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (10716L/76K).

!7

sclass ZipIncludeSnippets > DynSingleFunctionWithPrintLog {
  void doIt ctex {
    L snippets = cast call(dm_getModule(dm_snippetsDB()), 'snippetsOfType, "JavaX fragment (include)");
    print("Got " + n2(snippets, "snippet"));
    
    File zipFile = javaxBackupDir("javax-includes-" + ymdWithMinuses() + ".zip");
    print("Zipping to " + zipFile + "...");
    ZipOutputStream zipOut = zipOutputStream(zipFile);
    for (O sn : snippets) {
      long id = getLong(sn, 'snippetID);
      addFileToZip(zipOut, (File) call(sn, 'file), id + ".text");
    }
    zipOut.close();
    printFileInfo(zipFile);
    //uploadFileToFileServer(zipFile, zipFile.getName());
  }
}

Author comment

Began life as a copy of #1017712

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018036
Snippet name: Zip all JavaX Include snippets (from local snippets DB) [Dyn Module]
Eternal ID of this version: #1018036/6
Text MD5: 0ca67a38941a58f2cb20136ba2041305
Transpilation MD5: cbdaea6e8e599aaca414c0a1e9d9c361
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-08 21:51:08
Source code size: 688 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 1007
Version history: 5 change(s)
Referenced in: [show references]