[Arakhnę-Dev] [83] add function OperatingSystem.getCurrentOSVersion()

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 83
Author:   galland
Date:     2009-08-07 12:29:12 +0200 (Fri, 07 Aug 2009)

Log Message:
-----------
add function OperatingSystem.getCurrentOSVersion()

Modified Paths:
--------------
    trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/OperatingSystem.java


Modified: trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/OperatingSystem.java
===================================================================
--- trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/OperatingSystem.java	2009-08-07 08:51:20 UTC (rev 82)
+++ trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/OperatingSystem.java	2009-08-07 10:29:12 UTC (rev 83)
@@ -129,6 +129,15 @@
 		return System.getProperty("os.name"); //$NON-NLS-1$
 	}
 	
+	/** Replies the version of the current OS.
+	 * 
+	 * @return the version of the current operating system.
+	 * @see System#getProperty(java.lang.String)
+	 */
+	public static String getCurrentOSVersion() {
+		return System.getProperty("os.version"); //$NON-NLS-1$
+	}
+
 	/** Replies the current operating system.
 	 * 
 	 * @return the current operating system constant.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/