1 | static boolean isJavaCompilable(String text) ctex { |
2 | Class javax = getJavaX(); |
3 | File srcDir = (File) call(javax, "TempDirMaker_make"); |
4 | saveTextFile(new File(srcDir, "main.java").getPath(), text); |
5 | File classesDir = (File) call(javax, "TempDirMaker_make"); |
6 | new List<File> libraries; |
7 | |
8 | try { |
9 | call(javax, "compileJava", srcDir, libraries, classesDir); |
10 | return true; |
11 | } catch (Exception e) { |
12 | return false; |
13 | } |
14 | } |
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: | #1000888 |
Snippet name: | isJavaCompilable |
Eternal ID of this version: | #1000888/1 |
Text MD5: | 3fff02a6ecb04f65c20c5c1ab2d8e22d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-30 19:45:15 |
Source code size: | 440 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 626 / 1051 |
Referenced in: | [show references] |