Refactoring: common logic extracted and moved to a util class

This commit is contained in:
Andrey Breslav
2013-10-09 20:56:21 +04:00
parent d4a89d04d7
commit 9e0e67d19d
6 changed files with 86 additions and 63 deletions
@@ -206,7 +206,7 @@ public class BytecodeCompiler {
}
CompilerConfiguration configuration = createConfiguration(stdlib, classpath, sourcesRoots.toArray(new String[0]));
File directory = new File(module).getParentFile();
boolean success = KotlinToJVMBytecodeCompiler.compileModules(configuration, modules, directory, new File(jar), null, includeRuntime);
boolean success = KotlinToJVMBytecodeCompiler.compileModules(configuration, modules, directory, new File(jar), includeRuntime);
if (!success) {
throw new CompileEnvironmentException(errorMessage(new String[]{module}, false));
}