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/collection/BuildOptions.java

    r8015 r8231  
    66import java.util.*;
    77import org.apache.xerces.parsers.DOMParser;
     8import org.greenstone.gatherer.Configuration;
    89import org.greenstone.gatherer.Gatherer;
    910import org.greenstone.gatherer.cdm.Argument;
     
    4546    public BuildOptions(Element build_values_element, Element import_values_element) {
    4647    // first check the saved arguments language
    47     String interface_lang = Gatherer.config.getLanguage();
    48     String args_lang = Gatherer.config.getArgumentsLanguage();
     48    String interface_lang = Configuration.getLanguage();
     49    String args_lang = Configuration.getArgumentsLanguage();
    4950    if (interface_lang.equals(args_lang)) {
    5051        // Try to retrieve the arguments for import and build.
    51         build_arguments_element = Gatherer.config.getArguments("buildcol.pl");
    52         import_arguments_element = Gatherer.config.getArguments("import.pl");
     52        build_arguments_element = Configuration.getArguments("buildcol.pl");
     53        import_arguments_element = Configuration.getArguments("import.pl");
    5354    }
    5455    // If that fails try to reconstruct the arguments
     
    7374        // By now we should definately have the arguments. However the reason we are here is because they are not stored in the config.xml file, to make sure they are stored now.
    7475        if (used_defaults) {
    75         Gatherer.config.setArgumentsLanguage("en");
     76        Configuration.setArgumentsLanguage("en");
    7677        } else {
    77         Gatherer.config.setArgumentsLanguage(interface_lang);
    78         }
    79         Gatherer.config.setArguments(build_arguments_element);
    80         Gatherer.config.setArguments(import_arguments_element);
     78        Configuration.setArgumentsLanguage(interface_lang);
     79        }
     80        Configuration.setArguments(build_arguments_element);
     81        Configuration.setArguments(import_arguments_element);
    8182    }
    8283    else {
     
    397398        if(Utility.isWindows()) {
    398399            args = new String[6];
    399             args[0] = Gatherer.config.perl_path;
     400            args[0] = Configuration.perl_path;
    400401            args[1] = "-S";
    401             args[2] = Gatherer.config.getScriptPath() + filename;
     402            args[2] = Configuration.getScriptPath() + filename;
    402403            args[3] = "-xml";
    403404            args[4] = "-language";
     
    406407        else {
    407408            args = new String[4];
    408             args[0] = Gatherer.config.getScriptPath() + filename;
     409            args[0] = Configuration.getScriptPath() + filename;
    409410            args[1] = "-xml";
    410411            args[2] = "-language";
Note: See TracChangeset for help on using the changeset viewer.