Libraryless. Click here for Pure Java version (14467L/90K).
1 | // doesn't compile locally, just uploads and compiles on server |
2 | srecord noeq TranspileForServer(S progID) { |
3 | S server = tb_mainServer(); |
4 | |
5 | S javax; |
6 | PairS uploadResults; |
7 | |
8 | run { |
9 | javax = loadSnippet(progID); |
10 | print("Source: " + l(javax)); |
11 | |
12 | long time = sysNow(); |
13 | |
14 | time "Transpile" { |
15 | transpileRaw_silent = false; |
16 | S java; |
17 | try { |
18 | temp tempSetTL(transpileRaw_progID, progID); |
19 | java = transpileRaw(javax); |
20 | } on fail e { |
21 | printLineContextAfterJavaCompilerError(e, loadProgramTextFile("error.java")); |
22 | } |
23 | print("Transpiled: " + l(java)); |
24 | } |
25 | |
26 | new LS libs; |
27 | java = findTranslators2(java, libs); |
28 | print("Libs: " + or2(joinWithComma(libs), "-")); |
29 | |
30 | uploadResults = uploadTranspilation(progID, java, libs); |
31 | |
32 | print("Transpiled & uploaded " + fsI(progID) + "!"); |
33 | } |
34 | } |
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: | 210 / 288 |
Version history: | 5 change(s) |
Referenced in: | [show references] |