diff options
author | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
---|---|---|
committer | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
commit | e2d0f5d9c38561d67f23754c00addb4a3547efb2 (patch) | |
tree | 1832f16037c086b48266b8566aecc61f45f4e5f1 /src/test/JetTest.java | |
download | fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.gz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.lz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.xz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.zip |
initial commit
Diffstat (limited to 'src/test/JetTest.java')
-rw-r--r-- | src/test/JetTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/test/JetTest.java b/src/test/JetTest.java new file mode 100644 index 0000000..2bb1d43 --- /dev/null +++ b/src/test/JetTest.java @@ -0,0 +1,40 @@ +package test; + +import java.io.File; +import java.util.Date; +import java.util.HashMap; + +import de.fernflower.main.decompiler.ConsoleDecompiler; + +public class JetTest { + + public static void main(String[] args) { + + try { + + String current_path = new File(".").getCanonicalPath(); + + //TimerFactory.initialize(new File(".").getCanonicalPath()+"/lib/timer/hrtlib.dll"); + + Date start = new Date(); + + ConsoleDecompiler decompiler = new ConsoleDecompiler(new HashMap<String, Object>(){{put("log", "warn");put("ren", "1");}}); + + + //decompiler.addSpace(new File("D:\\Oleg\\workspace\\input\\BradTest.class"), true); + decompiler.addSpace(new File(current_path + "/bin/test/input/TestEclipse7.class"), true); + //decompiler.addSpace(new File(current_path + "/src/test/input/TestJavac7.class"), true); + //decompiler.addSpace(new File(current_path + "/src/test/input/TestJavac8.class"), true); + + //decompiler.decompileContext(new File("D:\\Oleg\\workspace\\output\\")); + decompiler.decompileContext(new File(current_path + "/src/test/output/")); + + System.out.println("\n\nTime elapsed " + (new Date().getTime() - start.getTime())/1000); + + } catch(Exception ex) { + ex.printStackTrace(); + } + + } + +} |