Skip to content
Snippets Groups Projects
Commit c7bc5eb2 authored by brinn's avatar brinn
Browse files

add method getComputerPlatform()

SVN: 1490
parent 4b7c6d6b
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,14 @@ public class OSUtilities ...@@ -62,6 +62,14 @@ public class OSUtilities
return System.getProperty("java.vendor").startsWith("Apple"); return System.getProperty("java.vendor").startsWith("Apple");
} }
/**
* @return The name of the computer platform (CPU architecture and OS name).
*/
public static String getComputerPlatform()
{
return System.getProperty("os.arch") + "-" + System.getProperty("os.name");
}
/** /**
* @return The name of user that runs this program. * @return The name of user that runs this program.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment