Uses 12245K of libraries. Click here for Pure Java version (8391L/42K).
1 | !7 |
2 | |
3 | cmodule WikifyIndexLoader > DynPrintLogAndEnabled { |
4 | switchable File indexFile; |
5 | |
6 | start-thread { |
7 | dm_reloadOnFieldChange indexFile(); |
8 | if (indexFile == null) ret with print("Please set file to start"); |
9 | if (!fileExists(indexFile)) |
10 | ret with print("File not found, skipping: " + indexFile); |
11 | dm_waitWhileBooting(); |
12 | if (wikify_findHeldIndex(fileName(indexFile)) != null) |
13 | ret with print("Already have index for " + fileName(indexFile)); |
14 | |
15 | // TODO: reuse existing module after reboot |
16 | dm_hold(new RAMByteMemory64(indexFile)); |
17 | vmBus_sendMessage reloadWikify(); |
18 | } |
19 | } |
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: | 219 / 2912 |
Version history: | 5 change(s) |
Referenced in: | [show references] |