Changeset 7674


Ignore:
Timestamp:
2004-06-30T15:44:41+12:00 (20 years ago)
Author:
kjdon
Message:

added a function to find the path to greenstone's wget

File:
1 edited

Legend:

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

    r7642 r7674  
    697697//      }
    698698
     699    /** returns the path to the greenstone version of wget */
     700    static public String getWGetPath(String gsdl_path) {
     701    if (isWindows()) {
     702        return gsdl_path + "bin" + File.separator +
     703        "windows" + File.separator +"wget.exe";
     704    }
     705    // is it the same for macs??
     706    return gsdl_path + "bin" + File.separator +
     707        "linux" + File.separator + "wget";
     708    }
     709   
    699710    /** A string is a valid hierarchy index if it matches '[0-9](\.[0-9])*' */
    700711    static public boolean isIndex(String raw) {
Note: See TracChangeset for help on using the changeset viewer.