Ignore:
Timestamp:
2004-10-07T16:44:32+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all "Gatherer.config" with "Configuration".

File:
1 edited

Legend:

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

    r8148 r8231  
    4646import org.apache.xerces.parsers.*;
    4747import org.apache.xml.serialize.*;
     48import org.greenstone.gatherer.Configuration;
    4849import org.greenstone.gatherer.Dictionary;
    4950import org.greenstone.gatherer.Gatherer;
     
    498499
    499500    if (Gatherer.GS3) {
    500         this_col_dir = getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, col_name);
     501        this_col_dir = getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, col_name);
    501502    } else {
    502         this_col_dir = getCollectionDir(Gatherer.config.gsdl_path, col_name);
     503        this_col_dir = getCollectionDir(Configuration.gsdl_path, col_name);
    503504       
    504505    }
     
    584585    static public String getHelpFolder() {
    585586
    586     String help_folder = "help/" + Gatherer.config.getLanguage() + "/";
     587    String help_folder = "help/" + Configuration.getLanguage() + "/";
    587588
    588589    // Try in the JAR/classes directory first
     
    813814           
    814815        // set up output stream for zip download
    815         String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     816        String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    816817        String zip_fname = col_dir + col_name + ".zip";
    817818        FileOutputStream zip_fos = new FileOutputStream(zip_fname);
     
    842843    final int maxBufferSize = 1024;
    843844
    844     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     845    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    845846    String zip_fname = col_dir + col_name + ".zip";
    846847    String upload_cgi = Gatherer.cgiBase + "upload";
     
    10271028    static public void zipup(String col_name, String dir_or_file)
    10281029    {
    1029     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     1030    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    10301031    int prefix_strip = col_dir.length();
    10311032
     
    10801081    static public void unzip(String col_name)
    10811082    {
    1082     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     1083    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    10831084    String zip_fname = col_dir + col_name + ".zip";
    10841085    int zip_mode = ZipFile.OPEN_READ | ZipFile.OPEN_DELETE;
Note: See TracChangeset for help on using the changeset viewer.