Changeset 6258
- Timestamp:
- 2003-12-12T17:56:56+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r5916 r6258 683 683 } 684 684 685 /** Method to determine if the host system is MacOS based. 686 * @return a boolean which is true if the platform is MacOS, false otherwise 687 */ 688 public static boolean isMac() { 689 Properties props = System.getProperties(); 690 String os_name = props.getProperty("os.name",""); 691 if(os_name.startsWith("Mac OS")) { 692 return true; 693 } 694 return false; 695 } 696 685 697 /** Determines if the given file is a descendant of the folder described. 686 698 * @param pos_parent the possible parent folder as a String … … 710 722 return false; 711 723 } 724 712 725 public static boolean isWindows9x() { 713 726 Properties props = System.getProperties();
Note:
See TracChangeset
for help on using the changeset viewer.