fix test in PlatformUtil.onMacOSX to use System.getProperty("os.name")
This commit is contained in:
parent
bdc742f558
commit
8888d77f97
|
@ -22,9 +22,9 @@ public class PlatformUtil {
|
||||||
* are we running on Mac OS X?
|
* are we running on Mac OS X?
|
||||||
*/
|
*/
|
||||||
public static boolean onMacOSX() {
|
public static boolean onMacOSX() {
|
||||||
// String osname = System.getProperty("os.name");
|
String osname = System.getProperty("os.name");
|
||||||
// return osname.toLowerCase().contains("mac");
|
return osname.toLowerCase().contains("mac");
|
||||||
return System.getProperty("mrj.version") != null;
|
// return System.getProperty("mrj.version") != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -51,10 +51,10 @@ public class PlatformUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the jars in the boot classpath.
|
* get the jars in the boot classpath. TODO test on more JVMs
|
||||||
* TODO test on more JVMs
|
|
||||||
*
|
*
|
||||||
* @throws IllegalStateException if boot classpath cannot be found
|
* @throws IllegalStateException
|
||||||
|
* if boot classpath cannot be found
|
||||||
*/
|
*/
|
||||||
public static String[] getBootClassPathJars() {
|
public static String[] getBootClassPathJars() {
|
||||||
String classpath = System.getProperty("sun.boot.class.path");
|
String classpath = System.getProperty("sun.boot.class.path");
|
||||||
|
|
Loading…
Reference in New Issue