Changeset 10186


Ignore:
Timestamp:
2005-06-28T11:01:37+12:00 (19 years ago)
Author:
kjdon
Message:

added isMac() to test for Mac OS

File:
1 edited

Legend:

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

    r10169 r10186  
    1 /*
     1 /*
    22 *    Misc.java
    33 *    Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
     
    7171    }
    7272
     73    public static boolean isMac() {
     74    Properties props = System.getProperties();
     75    String os_name = props.getProperty("os.name","");
     76    if(os_name.startsWith("Mac OS")) {
     77        return true;
     78    }
     79    return false;
     80    }
     81
    7382    public static BufferedReader makeHttpConnection(String url_string)
    7483    throws java.net.MalformedURLException, java.io.IOException {
Note: See TracChangeset for help on using the changeset viewer.