// n = how often to compile my own source code static void warmUpJavaCompiler(int n) { File srcDir = makeTempDir(); File classesDir = makeTempDir(); try { saveTextFile(newFile(srcDir, "main.java"), myJavaSource()); for (int i = 1; i <= n; i++) { //print("Attempt " + i); compileWholeDir(srcDir, myLibraryFiles(), classesDir); } } finally { deleteDirectory(srcDir, false, false); deleteDirectory(classesDir, false, false); } }
Began life as a copy of #1011222
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011223 |
Snippet name: | warmUpJavaCompiler - compiles source of this program n times |
Eternal ID of this version: | #1011223/2 |
Text MD5: | b0b64b74eadc51d2849aa097599feecf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-19 05:56:37 |
Source code size: | 481 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 397 / 429 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |