package utilities;

public class OSIdentifier {

	public static final String OS_NAME;
	public static final boolean IS_WINDOWS, IS_UNIX;

	static {
		OS_NAME = System.getProperty("os.name");
		IS_WINDOWS = OS_NAME.startsWith("Windows");
		IS_UNIX = !IS_WINDOWS;
	}

	private OSIdentifier() {}
}

@@ -131,20 +131,97 @@
 UNIX
-;%0A%0A%09static %7B
+, IS_LINUX, IS_OSX, IS_UNKNOWN;%0A%0A%09static %7B%0A%09%09// See http://lopica.sourceforge.net/os.html
 %0A%09%09O
@@ -258,16 +258,30 @@
 s.name%22)
+.toLowerCase()
 ;%0A%09%09IS_W
@@ -313,15 +313,11 @@
 th(%22
-W
+w
 in
-dows
 %22);%0A
@@ -339,16 +339,148 @@
 _WINDOWS
+;%0A%09%09IS_OSX = OS_NAME.startsWith(%22mac%22);%0A%09%09IS_LINUX = OS_NAME.startsWith(%22linux%22);%0A%09%09IS_UNKNOWN = !IS_WINDOWS && !IS_LINUX && !IS_OSX
 ;%0A%09%7D%0A%0A%09p

Improve OS identifier utility.