Changeset 6179


Ignore:
Timestamp:
2003-12-09T12:15:29+13:00 (20 years ago)
Author:
jmt12
Message:

Added some debug statements

File:
1 edited

Legend:

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

    r6086 r6179  
    125125        }
    126126        catch (MalformedURLException error) {
    127         ///ystem.err.println("Not an address.");
     127        Gatherer.println("Not an address.");
     128        Gatherer.printStackTrace(error);
    128129        }
    129130    }
    130131    // If the above failed, then its up to us to try and figure out what to do.
    131132    if(exec_address == null) {
    132                 // Try building a file from the given exec_path
     133        // Try building a file from the given exec_path
    133134        try {
    134135        File local_file = new File(exec_path);
     
    138139        }
    139140        else {
    140             ///ystem.err.println("No local library at given file path.");
    141         }
    142         }
    143                 // All sorts of errors might be thrown by a bogus file path.
     141            Gatherer.println("No local library at given file path.");
     142        }
     143        }
     144        // All sorts of errors might be thrown by a bogus file path.
    144145        catch (Exception error) {
    145146        Gatherer.println("Not a valid file.");
    146         }
    147                 // We can generate the path to where the local library should be and use that if it is there.
     147        Gatherer.printStackTrace(error);
     148        }
     149        // We can generate the path to where the local library should be and use that if it is there.
    148150        if(exec_file == null) {
    149151        File server_exe = new File(gsdl_path + Utility.SERVER_EXE);
     
    152154        }
    153155        else {
    154             ///ystem.err.println("No local library.");
    155         }
    156         }
    157                 // If we get to here with no exec_address nor an exec_file its just plain not going to work.
     156            Gatherer.println("No local library.");
     157        }
     158        }
     159        // If we get to here with no exec_address nor an exec_file its just plain not going to work.
    158160    }
    159161    else {
    160                 ///ystem.err.println("exec_address != null -> " + exec_address);
     162        Gatherer.println("exec_address != null -> " + exec_address);
    161163    }
    162164    ///ystem.err.println("Perl path.");
     
    169171        perl_path = perl_path + "perl.exe";
    170172    }
     173
    171174    // Try to reload the configuration.
    172175    File config_xml = new File(CONFIG_XML);
Note: See TracChangeset for help on using the changeset viewer.