Libraryless. Click here for Pure Java version (12836L/75K).
// doesn't compile locally, just uploads and compiles on server srecord noeq TranspileForServer_v2(S progID) { new RunTranspiler runTranspiler; S server = tb_mainServer(); S javax; PairS uploadResults; run { javax = loadSnippet(progID); print("Source: " + l(javax)); long time = sysNow(); time "Transpile" { S java; try { runTranspiler.mainSnippetID(progID); java = runTranspiler.get(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) + "!"); } }
Began life as a copy of #1033535
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035542 |
Snippet name: | TranspileForServer_v2 - successor of TranspileForServer |
Eternal ID of this version: | #1035542/4 |
Text MD5: | b1c70d42667c54329ed96a469a828c84 |
Transpilation MD5: | dafdf17018eaf2ebf7f5977805195fad |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-11 00:48:07 |
Source code size: | 887 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 99 / 170 |
Version history: | 3 change(s) |
Referenced in: | [show references] |