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

19
LINES

< > BotCompany Repo | #1008690 // Try invoking ecj on first VM (port 5000)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2711L/18K/61K).

1  
!7
2  
3  
p {
4  
  DialogIO io = talkTo("localhost", 5000);
5  
  File src = getProgramFile("bla.java");
6  
  saveTextFile(src, "class bla {}");
7  
  File optionsFile = getProgramFile("options");
8  
  saveTextFile(optionsFile, "-d " + f2s(programDir()) + " " + f2s(src));
9  
  if (startsWith(print(io.readLine()), "This is a JavaX VM")) {
10  
    S answer;
11  
    time {
12  
      answer = io.ask(format("invoke ecj on options file *", f2s(optionsFile)));
13  
    }
14  
    print(answer);
15  
    new Matches m;
16  
    if (swic(answer, "OK ", m))
17  
      print("OK: " + $1);
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008690
Snippet name: Try invoking ecj on first VM (port 5000)
Eternal ID of this version: #1008690/7
Text MD5: 61d50e3bb812cb538ba08919b2072311
Transpilation MD5: 3a439773d76237e3bce82291fbd48d2a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-28 18:47:46
Source code size: 545 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 522
Version history: 6 change(s)
Referenced in: [show references]