Browse Source

made stdlibs a jar file

Jared 5 years ago
parent
commit
cc51395056
No account linked to committer's email address

JavaIntegration/StdLibs.zip → JavaIntegration/StdLibs.jar View File


+ 1
- 1
JavaIntegration/src/main/java/org/openzen/zencode/java/ScriptingEngine.java View File

43
 		space = new ModuleSpace(registry, new ArrayList<>(), StorageType.getStandard());
43
 		space = new ModuleSpace(registry, new ArrayList<>(), StorageType.getStandard());
44
 		
44
 		
45
 		try {
45
 		try {
46
-            ZippedPackage stdlibs = new ZippedPackage(ScriptingEngine.class.getResourceAsStream("/StdLibs.zip"));
46
+            ZippedPackage stdlibs = new ZippedPackage(ScriptingEngine.class.getResourceAsStream("/StdLibs.jar"));
47
             SemanticModule stdlibModule = stdlibs.loadModule(space, "stdlib", null, new SemanticModule[0], FunctionParameter.NONE, stdlib);
47
             SemanticModule stdlibModule = stdlibs.loadModule(space, "stdlib", null, new SemanticModule[0], FunctionParameter.NONE, stdlib);
48
 			stdlibModule = Validator.validate(stdlibModule, error -> System.out.println(error.toString()));
48
 			stdlibModule = Validator.validate(stdlibModule, error -> System.out.println(error.toString()));
49
 			space.addModule("stdlib", stdlibModule);
49
 			space.addModule("stdlib", stdlibModule);

JavaIntegration/src/main/resources/StdLibs.zip → JavaIntegration/src/main/resources/StdLibs.jar View File


Loading…
Cancel
Save