Changeset 7444
- Timestamp:
- 2004-05-26T14:57:48+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java
r5400 r7444 7 7 import java.util.Map; 8 8 import java.util.Iterator; 9 9 import java.util.Properties; 10 10 11 11 /** contains miscellaneous functions */ … … 22 22 } 23 23 24 24 public static boolean isWindows() { 25 Properties props = System.getProperties(); 26 String os_name = props.getProperty("os.name",""); 27 if(os_name.startsWith("Windows")) { 28 return true; 29 } 30 return false; 31 } 32 25 33 }
Note:
See TracChangeset
for help on using the changeset viewer.