From 7b7ed6f682aac3e62d6e1774b9a83a7945b186e0 Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Mon, 8 Dec 2008 10:02:14 +0000
Subject: [PATCH] add: getCPUArchitecture() and getOSName()

SVN: 9225
---
 .../cisd/common/utilities/OSUtilities.java       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/OSUtilities.java b/common/source/java/ch/systemsx/cisd/common/utilities/OSUtilities.java
index 131e0e5e31a..ac6223d51bc 100644
--- a/common/source/java/ch/systemsx/cisd/common/utilities/OSUtilities.java
+++ b/common/source/java/ch/systemsx/cisd/common/utilities/OSUtilities.java
@@ -77,6 +77,22 @@ public class OSUtilities
         return System.getProperty("os.arch") + "-" + osName;
     }
 
+    /**
+     * @return The name of the CPU architecture.
+     */
+    public static String getCPUArchitecture()
+    {
+        return System.getProperty("os.arch");
+    }
+    
+    /**
+     * @return The name of the operating system.
+     */
+    public static String getOSName()
+    {
+        return System.getProperty("os.name");
+    }
+    
     /**
      * @return The name of the computer platform (CPU architecture and OS name).
      */
-- 
GitLab