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

Commit

Permalink
expose the utility method if consuming app needs to obtain the version
Browse files Browse the repository at this point in the history
  • Loading branch information
qinfchen committed Feb 29, 2016
1 parent 4c837f3 commit 74628ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public VersionInfoBundle() {
public VersionInfoBundle(String path) {
checkArgument(!Strings.isNullOrEmpty(path));

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

@Override
Expand All @@ -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 {
Expand Down

0 comments on commit 74628ca

Please sign in to comment.