add IS_WIN32

This commit is contained in:
Doug MacEachern 2005-07-10 08:05:41 +00:00
parent 45fd89c9ab
commit 67c3589698
1 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,9 @@ 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")) {