Changeset 36102 for main


Ignore:
Timestamp:
2022-03-11T10:03:39+13:00 (2 years ago)
Author:
kjdon
Message:

removed the defaults of localsite and library for site_name and servlet_path - these may not be accurate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/Configuration.java

    r36092 r36102  
    6565    /** The string identifying an argument's name attribute. */
    6666    static final private String ARGUMENT_NAME = "name";
    67     /** The name of the general Gatherer configuration file. */
     67    /** The name of the general Gatherer configuration file.
     68     Gatherer will change this to configRemote if isGsdlRemote */
    6869    static public String CONFIG_XML = "config.xml";
    6970    static public String FEDORA_CONFIG_PREFIX = "fedora-";
     
    8182    /** The name of the other arguments element. */
    8283    static final private String OTHER = "Other";
    83     /** The name of the general Gatherer configuration template. */
     84    /** The name of the general Gatherer configuration template.
     85    Gatherer will change this to xml/configRemote.xml if isGSDLRemote */
    8486    static public String TEMPLATE_CONFIG_XML = "xml/config.xml";
    8587    /** The first of three patterns used during tokenization, this pattern handles a comma separated list. */
     
    233235    if (site_name == null || site_name.equals("")) {
    234236        site_name = getString("general.site_name", true);
    235         servlet_path = getString("general.servlet_path", true);
    236         if (site_name.equals("")) {
    237         site_name = "localsite"; // can we assume these??
    238         servlet_path = "/library";
    239         setString("general.site_name", true, site_name);
    240         setString("general.servlet_path", true, servlet_path);
    241         }
    242        
     237        servlet_path = getString("general.servlet_path", true);     
    243238    } else {
    244239        // we set the current one in the config
Note: See TracChangeset for help on using the changeset viewer.