Changeset 4556


Ignore:
Timestamp:
2003-06-11T13:41:15+12:00 (21 years ago)
Author:
jmt12
Message:

Directed several debug comments so I can later have them only written out in debug mode.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

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

    r4493 r4556  
    105105    this.exec_path = exec_path;
    106106    // 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.
    107     System.err.println("EXEC_PATH = " + exec_path);
     107    Gatherer.println("EXEC_PATH = " + exec_path);
    108108    if(exec_path != null && exec_path.length() > 0) {
    109109        try {
     
    129129                // All sorts of errors might be thrown by a bogus file path.
    130130        catch (Exception error) {
    131         System.err.println("Not a valid file.");
     131        Gatherer.println("Not a valid file.");
    132132        }
    133133                // We can generate the path to where the local library should be and use that if it is there.
     
    171171    updateUI();
    172172
    173     System.err.println("EXEC_FILE = " + exec_file);
    174     System.err.println("EXEC_ADDRESS = " + exec_address);
     173    Gatherer.println("EXEC_FILE = " + exec_file);
     174    Gatherer.println("EXEC_ADDRESS = " + exec_address);
    175175    }
    176176
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r4484 r4556  
    688688    private void startServerEXE() {
    689689    if(config.exec_file != null && config.exec_address == null && Utility.isWindows()) {
    690                 // First of all we create a GSDLSiteCFG object and check if a URL is already present, in which case the server is already running.
     690        // First of all we create a GSDLSiteCFG object and check if a URL is already present, in which case the server is already running.
    691691        gsdlsite_cfg = new GSDLSiteConfig(config.exec_file);
    692692        String url = gsdlsite_cfg.getURL();
    693                 // If its already running then set exec address.
     693        // If its already running then set exec address.
    694694        if(url != null) {
    695695        try {
     
    699699        }
    700700        }
    701                 // Otherwise its time to run the server in a spawned process.
     701        // Otherwise its time to run the server in a spawned process.
    702702        if(config.exec_address == null && config.exec_file.exists()) {
    703703        // Configure for immediate entry. Note that this only works if the gsdlsite.cfg file exists.
     
    722722        }
    723723        }
    724                 // Can't do a damb thing.
    725     }
    726     System.err.println("Having started server.exe, exec_address is: " + config.exec_address);
     724        // Can't do a damb thing.
     725    }
     726    Gatherer.println("Having started server.exe, exec_address is: " + config.exec_address);
    727727    }
    728728
Note: See TracChangeset for help on using the changeset viewer.