Read bundled runtime version from build.txt in 'kotlinc' directory, not from plugin version

This commit is contained in:
Dmitry Jemerov
2016-11-14 18:23:17 +01:00
parent e1cf89a956
commit 7beee33f05
5 changed files with 25 additions and 7 deletions
@@ -50,4 +50,7 @@ public interface KotlinPaths {
@NotNull
File getCompilerPath();
@NotNull
File getBuildNumberFile();
}
@@ -88,6 +88,12 @@ public class KotlinPathsFromHomeDir implements KotlinPaths {
return getLibraryFile(PathUtil.KOTLIN_COMPILER_JAR);
}
@NotNull
@Override
public File getBuildNumberFile() {
return new File(homePath, "build.txt");
}
@NotNull
private File getLibraryFile(@NotNull String fileName) {
return new File(getLibPath(), fileName);