mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Make getting ImplementationVersion more robust
This commit is contained in:
@@ -127,11 +127,12 @@ public class BuildInfo {
|
||||
String manifestResult;
|
||||
String result;
|
||||
|
||||
try {
|
||||
manifestResult = getManifestAttribute("Implementation-Version");
|
||||
} catch (IOException exn) {
|
||||
manifestResult = null; // NOPMD by Braids on 8/12/11 10:21 AM
|
||||
}
|
||||
//try {
|
||||
//manifestResult = getManifestAttribute("Implementation-Version");
|
||||
manifestResult = BuildInfo.class.getPackage().getImplementationVersion();
|
||||
//} catch (IOException exn) {
|
||||
// manifestResult = null; // NOPMD by Braids on 8/12/11 10:21 AM
|
||||
//}
|
||||
|
||||
if (manifestResult == null) {
|
||||
result = "SVN";
|
||||
|
||||
Reference in New Issue
Block a user