Ignore:
Timestamp:
2004-10-08T09:46:12+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all Gatherer.print* with DebugStream.print*.

File:
1 edited

Legend:

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

    r8231 r8236  
    152152
    153153    // The exec_path may contain an url address, in which case we blindly use that and leave it up to the user to worry about settings and resetting.
    154     Gatherer.println("EXEC_PATH = " + exec_path);
     154    DebugStream.println("EXEC_PATH = " + exec_path);
    155155    if(exec_path != null && exec_path.length() > 0) {
    156156        try {
     
    158158        }
    159159        catch (MalformedURLException error) {
    160         Gatherer.println("Not an address.");
    161         Gatherer.printStackTrace(error);
     160        DebugStream.println("Not an address.");
     161        DebugStream.printStackTrace(error);
    162162        }
    163163    }
     
    172172        }
    173173        else {
    174             Gatherer.println("No local library at given file path.");
     174            DebugStream.println("No local library at given file path.");
    175175        }
    176176        }
    177177        // All sorts of errors might be thrown by a bogus file path.
    178178        catch (Exception error) {
    179         Gatherer.println("Libary url does not indicate the server.exe file.");
     179        DebugStream.println("Libary url does not indicate the server.exe file.");
    180180        ///atherer.printStackTrace(error);
    181181        }
     
    187187        }
    188188        else {
    189             Gatherer.println("No local library.");
     189            DebugStream.println("No local library.");
    190190        }
    191191        }
     
    193193    }
    194194    else {
    195         Gatherer.println("exec_address != null -> " + exec_address);
     195        DebugStream.println("exec_address != null -> " + exec_address);
    196196    }
    197197
     
    248248    if(general_config == null) {
    249249        general_config = Utility.parse(TEMPLATE_CONFIG_XML, true);
    250         Gatherer.println("Loaded default Gatherer configuration template.");
     250        DebugStream.println("Loaded default Gatherer configuration template.");
    251251    }
    252252    else {
    253         Gatherer.println("Loaded current Gatherer configuration.");
     253        DebugStream.println("Loaded current Gatherer configuration.");
    254254    }
    255255
     
    292292        }
    293293    }
    294     Gatherer.println("EXEC_FILE = " + exec_file);
    295     Gatherer.println("EXEC_ADDRESS = " + exec_address);
     294    DebugStream.println("EXEC_FILE = " + exec_file);
     295    DebugStream.println("EXEC_ADDRESS = " + exec_address);
    296296    }
    297297
     
    322322    }
    323323    catch (Exception exception) {
    324         Gatherer.printStackTrace(exception);
     324        DebugStream.printStackTrace(exception);
    325325    }
    326326    return result;
     
    424424    }
    425425    catch(Exception error) {
    426         Gatherer.printStackTrace(error);
     426        DebugStream.printStackTrace(error);
    427427    }
    428428    return result;
     
    469469    }
    470470    catch(Exception exception) {
    471         Gatherer.printStackTrace(exception);
     471        DebugStream.printStackTrace(exception);
    472472    }
    473473    return special_directories;
     
    510510    }
    511511    catch(Exception error) {
    512         Gatherer.printStackTrace(error);
     512        DebugStream.printStackTrace(error);
    513513    }
    514514    return result;
     
    523523    }
    524524    catch(Exception error) {
    525         Gatherer.printStackTrace(error);
     525        DebugStream.printStackTrace(error);
    526526    }
    527527    return result;
     
    555555    }
    556556    catch(Exception error) {
    557         Gatherer.printStackTrace(error);
     557        DebugStream.printStackTrace(error);
    558558    }
    559559    return result;
     
    690690    }
    691691    catch(Exception error) {
    692         Gatherer.printStackTrace(error);
     692        DebugStream.printStackTrace(error);
    693693    }
    694694    return file;
     
    724724    static public void set(String property, boolean general, boolean value) {
    725725    if(property.startsWith("workflow")) {
    726         Gatherer.println("Set property: " + property + ", general=" + general + ", value=" + value);
     726        DebugStream.println("Set property: " + property + ", general=" + general + ", value=" + value);
    727727    }
    728728    setString(property, general, (value ? "true" : "false"));
     
    756756    }
    757757    catch (Exception error) {
    758         Gatherer.println("Error in Configuration.setArguments(): " + error);
    759         Gatherer.printStackTrace(error);
     758        DebugStream.println("Error in Configuration.setArguments(): " + error);
     759        DebugStream.printStackTrace(error);
    760760    }
    761761    }
     
    867867    /** Sets the value of the named property argument using the given string. */
    868868    static public void setString(String property, boolean general, String value) {
    869     Gatherer.println("Set configuration property: " + property + " = " + value + (general ? "" : " [Collection]"));
     869    DebugStream.println("Set configuration property: " + property + " = " + value + (general ? "" : " [Collection]"));
    870870    try {
    871871        Document document = general_config;
Note: See TracChangeset for help on using the changeset viewer.