Ignore:
Timestamp:
2005-03-01T10:39:23+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed up a few problems with setting the wget path manually from the gli.sh file, and getting the default Greenstone wget path on the Mac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r9209 r9217  
    900900
    901901    /** returns the path to the greenstone version of wget */
    902     static public String getWGetPath(String gsdl_path) {
     902    static public String getWGetPath(String gsdl_path)
     903    {
    903904    if (isWindows()) {
    904         return gsdl_path + "bin" + File.separator +
    905         "windows" + File.separator +"wget.exe";
    906     }
    907     // is it the same for macs??
    908     return gsdl_path + "bin" + File.separator +
    909         "linux" + File.separator + "wget";
     905        return gsdl_path + "bin" + File.separator + "windows" + File.separator + "wget.exe";
     906    }
     907    else if (isMac()) {
     908        return gsdl_path + "bin" + File.separator + "darwin" + File.separator + "wget";
     909    }
     910    else {
     911        return gsdl_path + "bin" + File.separator + "linux" + File.separator + "wget";
     912    }
    910913    }
    911914
Note: See TracChangeset for help on using the changeset viewer.