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).

1  
!7
2  
3  
sclass ZipIncludeSnippets > DynSingleFunctionWithPrintLog {
4  
  void doIt ctex {
5  
    L snippets = cast call(dm_getModule(dm_snippetsDB()), 'snippetsOfType, "JavaX fragment (include)");
6  
    print("Got " + n2(snippets, "snippet"));
7  
    
8  
    File zipFile = javaxBackupDir("javax-includes-" + ymdWithMinuses() + ".zip");
9  
    print("Zipping to " + zipFile + "...");
10  
    ZipOutputStream zipOut = zipOutputStream(zipFile);
11  
    for (O sn : snippets) {
12  
      long id = getLong(sn, 'snippetID);
13  
      addFileToZip(zipOut, (File) call(sn, 'file), id + ".text");
14  
    }
15  
    zipOut.close();
16  
    printFileInfo(zipFile);
17  
    //uploadFileToFileServer(zipFile, zipFile.getName());
18  
  }
19  
}

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: 377 / 1024
Version history: 5 change(s)
Referenced in: [show references]