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

19
LINES

< > BotCompany Repo | #1029782 // wikify index loader

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

Uses 12245K of libraries. Click here for Pure Java version (8391L/42K).

!7

cmodule WikifyIndexLoader > DynPrintLogAndEnabled {
  switchable File indexFile;
  
  start-thread {
    dm_reloadOnFieldChange indexFile();
    if (indexFile == null) ret with print("Please set file to start");
    if (!fileExists(indexFile))
      ret with print("File not found, skipping: " + indexFile);
    dm_waitWhileBooting();
    if (wikify_findHeldIndex(fileName(indexFile)) != null)
      ret with print("Already have index for " + fileName(indexFile));
      
    // TODO: reuse existing module after reboot
    dm_hold(new RAMByteMemory64(indexFile));
    vmBus_sendMessage reloadWikify();
  }
}

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: #1029782
Snippet name: wikify index loader
Eternal ID of this version: #1029782/6
Text MD5: fb2362ba67d8b412964469f2a8221588
Transpilation MD5: 360b575d891f410680723da01fe6461c
Author: stefan
Category: javax / wikify.live
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-15 14:11:47
Source code size: 630 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 2798
Version history: 5 change(s)
Referenced in: [show references]