Read bundled runtime version from build.txt in 'kotlinc' directory, not from plugin version
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user