add IS_WIN32

This commit is contained in:
Doug MacEachern committed 2005-07-10 08:05:41 +00:00
1 parent 45fd89c9ab
commit 67c3589698
1 file changed
+5 -2
@@ -34,7 +34,10 @@ public class OperatingSystem {
};
public static final String[] NAMES;
public static final boolean IS_WIN32 =
System.getProperty("os.name").indexOf("Windows") != -1;
private static Map supportedPlatforms = new HashMap();
static {
@@ -101,7 +104,7 @@ public class OperatingSystem {
os.type = TYPE_LINUX;
os.getLinuxInfo();
}
else if (os.name.indexOf("Windows") > -1) {
else if (IS_WIN32) {
os.type = TYPE_WIN32;
os.vendor = "Microsoft";
if (os.name.endsWith("XP")) {