Skip to content

Commit

Permalink
Merge pull request #810 from rsksmart/fix_buildinfo
Browse files Browse the repository at this point in the history
Fix build information resolution
  • Loading branch information
diega authored Apr 11, 2019
2 parents 2f82a94 + 4705e9f commit d1a4b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rskj-core/src/main/java/co/rsk/RskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public BuildInfo getBuildInfo() {
if (buildInfo == null) {
try {
Properties props = new Properties();
InputStream buildInfoFile = RskContext.class.getResourceAsStream("build-info.properties");
InputStream buildInfoFile = RskContext.class.getClassLoader().getResourceAsStream("build-info.properties");
props.load(buildInfoFile);
buildInfo = new BuildInfo(props.getProperty("build.hash"), props.getProperty("build.branch"));
} catch (IOException | NullPointerException e) {
Expand Down

0 comments on commit d1a4b8e

Please sign in to comment.