Make getting ImplementationVersion more robust

This commit is contained in:
jendave
2011-10-22 07:19:35 +00:00
parent bf9686418b
commit a91433f346

View File

@@ -127,11 +127,12 @@ public class BuildInfo {
String manifestResult; String manifestResult;
String result; String result;
try { //try {
manifestResult = getManifestAttribute("Implementation-Version"); //manifestResult = getManifestAttribute("Implementation-Version");
} catch (IOException exn) { manifestResult = BuildInfo.class.getPackage().getImplementationVersion();
manifestResult = null; // NOPMD by Braids on 8/12/11 10:21 AM //} catch (IOException exn) {
} // manifestResult = null; // NOPMD by Braids on 8/12/11 10:21 AM
//}
if (manifestResult == null) { if (manifestResult == null) {
result = "SVN"; result = "SVN";