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

34
LINES

< > BotCompany Repo | #1033535 // TranspileForServer - successor of transpileForServer

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (14467L/90K).

// doesn't compile locally, just uploads and compiles on server
srecord noeq TranspileForServer(S progID) {
  S server = tb_mainServer();
  
  S javax;
  PairS uploadResults;
  
  run {
    javax = loadSnippet(progID);
    print("Source: " + l(javax));
  
    long time = sysNow();
  
    time "Transpile" {
      transpileRaw_silent = false;
      S java;
      try {
        temp tempSetTL(transpileRaw_progID, progID);
        java = transpileRaw(javax);
      } on fail e {
        printLineContextAfterJavaCompilerError(e, loadProgramTextFile("error.java"));
      }
      print("Transpiled: " + l(java));
    }

    new LS libs;
    java = findTranslators2(java, libs);
    print("Libs: " + or2(joinWithComma(libs), "-"));

    uploadResults = uploadTranspilation(progID, java, libs);

    print("Transpiled & uploaded " + fsI(progID) + "!");
  }
}

Author comment

Began life as a copy of #1011923

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, gjtlkbvenryc, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033535
Snippet name: TranspileForServer - successor of transpileForServer
Eternal ID of this version: #1033535/6
Text MD5: 95fe74cfb945aa6f4a3db78e872b804a
Transpilation MD5: 6053af3ec5cb8bdad9ffe311a4755401
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-01 20:29:27
Source code size: 887 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 211 / 290
Version history: 5 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)
#1035542 - TranspileForServer_v2 - successor of TranspileForServer