Skip to content

Commit

Permalink
also get it from versioninfo if fails
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed May 7, 2024
1 parent 2f990e7 commit 3e43e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// Package private
class VersionInfo {
static final String FLAVOR = "stack";
static final String VERSION = "8.11.0";
static final String VERSION = "8.15.0";
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public String toString() {
try(BufferedReader vsReader = new BufferedReader(new FileReader(path.toFile()))) {
version = Version.parse(vsReader.readLine());
} catch (Exception e) {
// Failed to parse version
// Failed to parse version from file, trying from VersionInfo
version = Version.parse(VersionInfo.VERSION);
}
VERSION = version;
}
Expand Down

0 comments on commit 3e43e9b

Please sign in to comment.