diff options
author | Sven Gothel <[email protected]> | 2010-11-25 18:52:09 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-25 18:52:09 +0100 |
commit | 5b43d384017f9cfa12dab1a194a5688b948dc587 (patch) | |
tree | 6cb75177874b4c88fe5b3c1fc2b16ed145d20d23 /src/java/com/jogamp/common/util/VersionUtil.java | |
parent | 2d2ae213fa207bcb01abef78cea034b66d2b4184 (diff) |
Refined VersionInfo (seperator/new-line)
Diffstat (limited to 'src/java/com/jogamp/common/util/VersionUtil.java')
-rw-r--r-- | src/java/com/jogamp/common/util/VersionUtil.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/util/VersionUtil.java b/src/java/com/jogamp/common/util/VersionUtil.java index 123d1e5..6868175 100644 --- a/src/java/com/jogamp/common/util/VersionUtil.java +++ b/src/java/com/jogamp/common/util/VersionUtil.java @@ -40,6 +40,8 @@ import java.util.jar.Manifest; public class VersionUtil { + public static final String SEPERATOR = "-----------------------------------------------------------------------------------------------------"; + /** * Appends environment information like OS, JVM and CPU architecture properties to the StringBuffer. */ @@ -48,6 +50,8 @@ public class VersionUtil { sb = new StringBuffer(); } + sb.append(SEPERATOR).append(Platform.getNewline()); + // environment sb.append("Platform: ").append(Platform.getOS()).append(' ').append(Platform.getOSVersion()).append(" (os), "); sb.append(Platform.getArch()).append(" (arch) ").append(Runtime.getRuntime().availableProcessors()).append(" cores"); @@ -61,14 +65,15 @@ public class VersionUtil { // JVM/JRE sb.append("Platform: Java ").append(Platform.getJavaVersion()).append(", ").append(System.getProperty("java.vm.name")).append(", "); sb.append(Platform.getJavaVendor()).append(", ").append(Platform.getJavaVendorURL()).append(", is JavaSE: ").append(Platform.isJavaSE()); - sb.append(Platform.getNewline()); + + sb.append(Platform.getNewline()).append(SEPERATOR); return sb; } /** - * Prints platfomr info. - * @see #getPlatformInfo(java.lang.StringBuffer) + * Prints platform info. + * @see #getPlatformInfo(java.lang.StringBuffer) */ public static String getPlatformInfo() { return getPlatformInfo(null).toString(); |