mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: add additional search path /ultimate/community/build.txt for fix build number in Rider.
(cherry picked from commit 73e99b1, IDEA-CR-20364)
This commit is contained in:
@@ -163,7 +163,7 @@ public class BuildNumber implements Comparable<BuildNumber> {
|
||||
private static BuildNumber fromFile() {
|
||||
try {
|
||||
String home = PathManager.getHomePath();
|
||||
File buildTxtFile = FileUtil.findFirstThatExist(home + "/build.txt", home + "/Resources/build.txt", home + "/community/build.txt");
|
||||
File buildTxtFile = FileUtil.findFirstThatExist(home + "/build.txt", home + "/Resources/build.txt", home + "/community/build.txt", home + "/ultimate/community/build.txt");
|
||||
if (buildTxtFile != null) {
|
||||
String text = FileUtil.loadFile(buildTxtFile).trim();
|
||||
return fromString(text);
|
||||
|
||||
Reference in New Issue
Block a user