add IS_WIN32
This commit is contained in:
parent
45fd89c9ab
commit
67c3589698
|
@ -35,6 +35,9 @@ public class OperatingSystem {
|
||||||
|
|
||||||
public static final String[] NAMES;
|
public static final String[] NAMES;
|
||||||
|
|
||||||
|
public static final boolean IS_WIN32 =
|
||||||
|
System.getProperty("os.name").indexOf("Windows") != -1;
|
||||||
|
|
||||||
private static Map supportedPlatforms = new HashMap();
|
private static Map supportedPlatforms = new HashMap();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -101,7 +104,7 @@ public class OperatingSystem {
|
||||||
os.type = TYPE_LINUX;
|
os.type = TYPE_LINUX;
|
||||||
os.getLinuxInfo();
|
os.getLinuxInfo();
|
||||||
}
|
}
|
||||||
else if (os.name.indexOf("Windows") > -1) {
|
else if (IS_WIN32) {
|
||||||
os.type = TYPE_WIN32;
|
os.type = TYPE_WIN32;
|
||||||
os.vendor = "Microsoft";
|
os.vendor = "Microsoft";
|
||||||
if (os.name.endsWith("XP")) {
|
if (os.name.endsWith("XP")) {
|
||||||
|
|
Loading…
Reference in New Issue