Ignore:
Timestamp:
2003-08-22T10:05:19+12:00 (21 years ago)
Author:
jmt12
Message:

Fixed local library but when running network enabled computer (laptop) when not attached to network.

File:
1 edited

Legend:

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

    r5164 r5253  
    209209
    210210        if(config.exec_file == null && config.exec_address == null) {
     211        if(config.exec_file == null) {
     212            Gatherer.println("config.exec_file is null");
     213        }
     214        if(config.exec_address == null) {
     215            Gatherer.println("config.exec_address is null");
     216        }
    211217        missingEXEC(dictionary);
    212218        }
     
    777783                        // A quick test involves opening a connection to get the home page  for this collection. If this fails then we try changing the url to be localhost.
    778784                        try {
    779                             Gatherer.println("Try connecting to server on config url.");
     785                            Gatherer.println("Try connecting to server on config url: '" + config.exec_address + "'");
    780786                            URLConnection connection = config.exec_address.openConnection();
    781787                            connection.getContent();
     
    783789                        catch(IOException bad_url_connection) {
    784790                            try {
    785                                 Gatherer.println("Try connecting to server on local host.");
     791                                Gatherer.println("Try connecting to server on local host: '" + gsdlsite_cfg.getLocalHostURL() + "'");
    786792                                config.exec_address = new URL(gsdlsite_cfg.getLocalHostURL  ());
    787793                                URLConnection connection = config.exec_address.openConnection();
Note: See TracChangeset for help on using the changeset viewer.