Skip to content

Commit

Permalink
DRILL-1881 - Test o.a.d.TestBugFixes#testVersionTable fails while bui…
Browse files Browse the repository at this point in the history
…lding from source tarball
  • Loading branch information
adityakishore committed Dec 18, 2014
1 parent 9360e25 commit e3ab2c1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public static class VersionInfo {
public String build_time = "";

public VersionInfo(){
URL u = Resources.getResource("git.properties");
if(u != null){
try {
try {
URL u = Resources.getResource("git.properties");
if(u != null){
Properties p = new Properties();
p.load(Resources.newInputStreamSupplier(u).getInput());
commit_id = p.getProperty("git.commit.id");
Expand All @@ -48,11 +48,10 @@ public VersionInfo(){
build_time = p.getProperty("git.build.time");
commit_message = p.getProperty("git.commit.message.short");

} catch (IOException e) {
logger.warn("Failure while trying to load \"git.properties\" file.", e);
}
} catch (IOException | IllegalArgumentException e) {
logger.warn("Failure while trying to load \"git.properties\" file.", e);
}

}
}
@Override
Expand Down

0 comments on commit e3ab2c1

Please sign in to comment.