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 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";
|
||||||
|
|||||||
Reference in New Issue
Block a user