Got rid of actual using CompilerDependencies in CompilerEnvironmentUtil.
This commit is contained in:
@@ -149,7 +149,7 @@ public class CompileEnvironmentUtil {
|
|||||||
throw new CompileEnvironmentException("Module script " + moduleScriptFile + " analyze failed");
|
throw new CompileEnvironmentException("Module script " + moduleScriptFile + " analyze failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Module> modules = runDefineModules(dependencies, moduleScriptFile, generationState.getFactory());
|
List<Module> modules = runDefineModules(moduleScriptFile, generationState.getFactory());
|
||||||
|
|
||||||
Disposer.dispose(disposable);
|
Disposer.dispose(disposable);
|
||||||
|
|
||||||
@@ -163,8 +163,8 @@ public class CompileEnvironmentUtil {
|
|||||||
return modules;
|
return modules;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<Module> runDefineModules(CompilerDependencies compilerDependencies, String moduleFile, ClassFileFactory factory) {
|
private static List<Module> runDefineModules(String moduleFile, ClassFileFactory factory) {
|
||||||
File stdlibJar = compilerDependencies.getRuntimeJar();
|
File stdlibJar = PathUtil.getDefaultRuntimePath();
|
||||||
GeneratedClassLoader loader;
|
GeneratedClassLoader loader;
|
||||||
if (stdlibJar != null) {
|
if (stdlibJar != null) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user