From 4b7c6d6bcddeb46235c9bcabe9d79daecad929b8 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Sun, 26 Aug 2007 16:17:03 +0000 Subject: [PATCH] add method getCPUArchitecture() and add information in getBuildInformation() SVN: 1489 --- .../cisd/common/utilities/BuildAndEnvironmentInfo.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/BuildAndEnvironmentInfo.java b/common/source/java/ch/systemsx/cisd/common/utilities/BuildAndEnvironmentInfo.java index 09905bf54b8..af0cf5d54a8 100644 --- a/common/source/java/ch/systemsx/cisd/common/utilities/BuildAndEnvironmentInfo.java +++ b/common/source/java/ch/systemsx/cisd/common/utilities/BuildAndEnvironmentInfo.java @@ -78,6 +78,14 @@ public final class BuildAndEnvironmentInfo this.cleanSources = extractedCleanFlag; } + /** + * @return Name of the CPU architecture. + */ + public String getCPUArchitecture() + { + return System.getProperty("os.arch"); + } + /** * @return Name and version of the operating system. */ @@ -143,6 +151,7 @@ public final class BuildAndEnvironmentInfo environmentInfo.add("Version:\t" + getVersion()); environmentInfo.add("Build number:\t" + getBuildNumber()); environmentInfo.add("Java VM:\t" + getJavaVM()); + environmentInfo.add("CPU architecture:\t" + getCPUArchitecture()); environmentInfo.add("OS:\t\t" + getOS()); return environmentInfo; } -- GitLab