Drop deprecated KotlinPaths.getRuntimePath, use getStdlibPath instead

This commit is contained in:
Alexander Udalov
2017-07-27 15:59:16 +03:00
parent b988582531
commit 8b149db0ec
10 changed files with 21 additions and 40 deletions
@@ -118,16 +118,11 @@ public class CompileEnvironmentUtil {
}
private static void writeRuntimeToJar(JarOutputStream stream) throws IOException {
File runtimePath = PathUtil.getKotlinPathsForCompiler().getRuntimePath();
if (!runtimePath.exists()) {
throw new CompileEnvironmentException("Couldn't find runtime library");
File stdlibPath = PathUtil.getKotlinPathsForCompiler().getStdlibPath();
if (!stdlibPath.exists()) {
throw new CompileEnvironmentException("Couldn't find kotlin-stdlib at " + stdlibPath);
}
File scriptRuntimePath = PathUtil.getKotlinPathsForCompiler().getScriptRuntimePath();
if (!scriptRuntimePath.exists()) {
throw new CompileEnvironmentException("Couldn't find script runtime library");
}
copyJarImpl(stream, runtimePath);
copyJarImpl(stream, stdlibPath);
}
private static void copyJarImpl(JarOutputStream stream, File jarPath) throws IOException {