Transpiled version (1460L) is out of date.
1 | !636 |
2 | |
3 | !include #1000451 // class _x18, modified for Android |
4 | |
5 | main {
|
6 | static Object androidContext; |
7 | |
8 | psvm {
|
9 | _x18.androidContext = androidContext; |
10 | _x18.verbose = true; |
11 | |
12 | Class c = _x18.getEclipseCompiler(); |
13 | System.out.println(c); // Class found! |
14 | |
15 | //static String compileJava(File srcDir, List<File> libraries, File classesDir) |
16 | File srcDir = _x18.TempDirMaker_make(); |
17 | _x18.saveTextFile(new File(srcDir, "main.java").getPath(), "public class main { public static void main(String[] args) {}}");
|
18 | File classesDir = _x18.TempDirMaker_make(); |
19 | try {
|
20 | print "Running compileJava" |
21 | long time = System.currentTimeMillis(); |
22 | _x18.compileJava(srcDir, new ArrayList<File>(), classesDir); |
23 | time -= System.currentTimeMillis(); |
24 | System.out.println("Done compileJava - " + time + " ms");
|
25 | } catch (Throwable e) {
|
26 | print "Error in compileJava" |
27 | e.printStackTrace(); |
28 | } |
29 | |
30 | System.out.println("main.class size: " + new File(classesDir, "main.class").length());
|
31 | } |
32 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hxnwyiuffukg, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
| ID | Author/Program | Comment | Date |
|---|---|---|---|
| 379 | #1000610 (pitcher) | 2015-08-18 00:07:07 | |
| 378 | #1000604 (pitcher) | 2015-08-18 00:07:22 |
| Snippet ID: | #1000450 |
| Snippet name: | Eclipse compiler test on Android - it's slow... |
| Eternal ID of this version: | #1000450/1 |
| Text MD5: | 096a9275406fdfdc5a7441f74d19d55b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-08-07 19:09:26 |
| Source code size: | 1070 bytes / 32 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1089 / 1129 |
| Referenced in: | [show references] |