|
@@ -5,15 +5,6 @@
|
5
|
5
|
*/
|
6
|
6
|
package org.openzen.zenscript.constructor;
|
7
|
7
|
|
8
|
|
-import java.io.File;
|
9
|
|
-import java.io.FileOutputStream;
|
10
|
|
-import java.io.IOException;
|
11
|
|
-import java.io.OutputStreamWriter;
|
12
|
|
-import java.nio.charset.StandardCharsets;
|
13
|
|
-import java.util.ArrayList;
|
14
|
|
-import java.util.HashMap;
|
15
|
|
-import java.util.List;
|
16
|
|
-import java.util.Map;
|
17
|
8
|
import org.json.JSONObject;
|
18
|
9
|
import org.openzen.zenscript.codemodel.SemanticModule;
|
19
|
10
|
import org.openzen.zenscript.codemodel.definition.ZSPackage;
|
|
@@ -24,13 +15,23 @@ import org.openzen.zenscript.compiler.ZenCodeCompiler;
|
24
|
15
|
import org.openzen.zenscript.javabytecode.JavaBytecodeModule;
|
25
|
16
|
import org.openzen.zenscript.javabytecode.JavaBytecodeRunUnit;
|
26
|
17
|
import org.openzen.zenscript.javabytecode.JavaCompiler;
|
27
|
|
-import org.openzen.zenscript.javashared.JavaCompileSpace;
|
28
|
18
|
import org.openzen.zenscript.javashared.JavaCompiledModule;
|
29
|
19
|
import org.openzen.zenscript.javashared.SimpleJavaCompileSpace;
|
30
|
20
|
import org.openzen.zenscript.javasource.JavaDirectoryOutput;
|
31
|
21
|
import org.openzen.zenscript.javasource.JavaSourceCompiler;
|
32
|
22
|
import org.openzen.zenscript.javasource.JavaSourceModule;
|
33
|
23
|
|
|
24
|
+import java.io.File;
|
|
25
|
+import java.io.FileOutputStream;
|
|
26
|
+import java.io.IOException;
|
|
27
|
+import java.io.OutputStreamWriter;
|
|
28
|
+import java.lang.reflect.InvocationTargetException;
|
|
29
|
+import java.nio.charset.StandardCharsets;
|
|
30
|
+import java.util.ArrayList;
|
|
31
|
+import java.util.HashMap;
|
|
32
|
+import java.util.List;
|
|
33
|
+import java.util.Map;
|
|
34
|
+
|
34
|
35
|
/**
|
35
|
36
|
*
|
36
|
37
|
* @author Hoofdgebruiker
|
|
@@ -220,7 +221,11 @@ public class ConstructorRegistry {
|
220
|
221
|
for (JavaBytecodeModule module : modules)
|
221
|
222
|
unit.add(module);
|
222
|
223
|
//unit.add(compiler.helpers);
|
223
|
|
- unit.run();
|
224
|
|
- }
|
|
224
|
+ try {
|
|
225
|
+ unit.run();
|
|
226
|
+ } catch(ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
|
227
|
+ e.printStackTrace();
|
|
228
|
+ }
|
|
229
|
+ }
|
225
|
230
|
}
|
226
|
231
|
}
|