Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from palantir/qchen/publicUtilityMethod
Browse files Browse the repository at this point in the history
expose get version utility method if the consuming app needs to obtain the version directly
qinfchen committed Feb 29, 2016
2 parents 4c837f3 + 74628ca commit e4d6e16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ public VersionInfoBundle() {
public VersionInfoBundle(String path) {
checkArgument(!Strings.isNullOrEmpty(path));

this.version = readResource(path);
this.version = readVersion(path);
}

@Override
@@ -51,7 +51,7 @@ public void run(Environment environment) {
environment.jersey().register(new VersionInfoResource(this.version));
}

private static String readResource(String resourcePath) {
public static String readVersion(String resourcePath) {
Properties properties = new Properties();
String result;
try {

0 comments on commit e4d6e16

Please sign in to comment.