Changeset 10169
- Timestamp:
- 2005-06-24T13:17:50+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java
r9874 r10169 46 46 } 47 47 48 /** Method to determine if the host system is Windows based. 49 * @return a boolean which is true if the platform is Windows, 50 * false otherwise 51 */ 48 52 public static boolean isWindows() { 49 53 Properties props = System.getProperties(); … … 53 57 } 54 58 return false; 59 } 60 61 /** Method to determine if the host system is MacOS based. 62 * @return a boolean which is true if the platform is MacOS, false otherwise 63 */ 64 public static boolean isMac() { 65 Properties props = System.getProperties(); 66 String os_name = props.getProperty("os.name",""); 67 if(os_name.startsWith("Mac OS")) { 68 return true; 69 } 70 return false; 55 71 } 56 72
Note:
See TracChangeset
for help on using the changeset viewer.