Skip to content

Commit d1a4b8e

Browse files
authored
Merge pull request #810 from rsksmart/fix_buildinfo
Fix build information resolution
2 parents 2f82a94 + 4705e9f commit d1a4b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rskj-core/src/main/java/co/rsk/RskContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public BuildInfo getBuildInfo() {
427427
if (buildInfo == null) {
428428
try {
429429
Properties props = new Properties();
430-
InputStream buildInfoFile = RskContext.class.getResourceAsStream("build-info.properties");
430+
InputStream buildInfoFile = RskContext.class.getClassLoader().getResourceAsStream("build-info.properties");
431431
props.load(buildInfoFile);
432432
buildInfo = new BuildInfo(props.getProperty("build.hash"), props.getProperty("build.branch"));
433433
} catch (IOException | NullPointerException e) {

0 commit comments

Comments
 (0)