1 | // n = how often to compile my own source code |
2 | static void warmUpJavaCompiler(int n) { |
3 | File srcDir = makeTempDir(); |
4 | File classesDir = makeTempDir(); |
5 | try { |
6 | saveTextFile(newFile(srcDir, "main.java"), myJavaSource()); |
7 | for (int i = 1; i <= n; i++) { |
8 | //print("Attempt " + i); |
9 | compileWholeDir(srcDir, myLibraryFiles(), classesDir); |
10 | } |
11 | } finally { |
12 | deleteDirectory(srcDir, false, false); |
13 | deleteDirectory(classesDir, false, false); |
14 | } |
15 | } |
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: | 396 / 429 |
Version history: | 1 change(s) |
Referenced in: | [show references] |