Changeset 7444


Ignore:
Timestamp:
2004-05-26T14:57:48+12:00 (20 years ago)
Author:
kjdon
Message:

added in an isWindows function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Misc.java

    r5400 r7444  
    77import java.util.Map;
    88import java.util.Iterator;
    9 
     9import java.util.Properties;
    1010
    1111/** contains miscellaneous functions */
     
    2222    }
    2323   
    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
    2533}
Note: See TracChangeset for help on using the changeset viewer.