Transpiled version (10895L) is out of date.
static File projectForLocalCompilation(File destZip, S programID) { temp var zipOut = zipOutputStream(destZip); Pair<S, LS> p = extractLibsFromTranspilation(getServerTranspiled2(programID)); text2zip(p.a, zipOut, "main.java"); new LS libPaths; new LS toCompile; for (lib : p.b) { S libPath = "lib" + lib + ".jar"; libPaths.add(libPath); file2zip(loadLibraryOrSrcLib(lib), zipOut, libPath); if (isSrcLib(lib)) text2zip(zipOut, addAndReturn(toCompile, "loadableUtils/utils.java"), getServerTranspiledWithoutLibs(lib)); // TODO } libPaths.add("x30.jar"); file2zip(pathToJavaxJar(), zipOut, "x30.jar"); text2zip("javac -source 11 -target 11 -cp " + join(":", libPaths) + " main.java " + joinWithSpace(toCompile) + "\n", zipOut, "compile"); text2zip("java -cp .:" + join(":", libPaths) + " main\n", zipOut, "run"); ret destZip; } static File projectForLocalCompilation(S programID, File destZip) { ret projectForLocalCompilation(destZip, programID); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033487 |
Snippet name: | projectForLocalCompilation |
Eternal ID of this version: | #1033487/10 |
Text MD5: | e5d7304bd2ce9b095d2b9b49b6e7a778 |
Author: | stefan |
Category: | javax / compiling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-29 10:43:44 |
Source code size: | 1017 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 170 / 247 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033489 - extractProjectForLocalCompilation #1033517 - freshenClassFilesInJar [dev.] |