Changeset 4594


Ignore:
Timestamp:
2003-06-12T12:06:40+12:00 (21 years ago)
Author:
kjdon
Message:

tidied up gatherer.debug - > gatherer.println, commented out the debug stuff - its old.

File:
1 edited

Legend:

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

    r4556 r4594  
    278278     * @param message The message as a <strong>String</strong>.
    279279     */
    280     public void debug(String message) {
    281     debug(null, message);
    282     }
     280    //   public void debug(String message) {
     281    //debug(null, message);
     282    //  }
    283283    /** Writes a message to the debug filestream.
    284284     * @param error The <strong>Exception</strong> associated with this message, or <i>null</i> for no exception.
     
    288288     * @see java.lang.Exception
    289289     */
    290     public void debug(Exception exception, String message) {
    291     if(message != null) {
    292         Gatherer.println(message);
    293     }
    294     if(exception != null) {
    295         Gatherer.printStackTrace(exception);
    296     }
    297     }
     290    //  public void debug(Exception exception, String message) {
     291    //if(message != null) {
     292    //    Gatherer.println(message);
     293    //}
     294    //if(exception != null) {
     295    //    Gatherer.printStackTrace(exception);
     296    //}
     297    // }
    298298    /** Exits the Gatherer after ensuring that things needing saving are saved.
    299299     * @see java.io.FileOutputStream
     
    795795     */
    796796    public void run() {
    797                 // Call an external process using the args.
     797        // Call an external process using the args.
    798798        try {
    799         debug("Running " + command);
     799        println("Running " + command);
    800800        Runtime rt = Runtime.getRuntime();
    801801        process = rt.exec(command);
     
    803803        }
    804804        catch (Exception error) {
    805         debug(error, "Error in ExternalApplication.run(): " + error);
    806         }
    807                 // Remove ourself from Gatherer list of threads.
     805        println("Error in ExternalApplication.run(): " + error);
     806        printStackTrace(error);
     807        }
     808        // Remove ourself from Gatherer list of threads.
    808809        apps.remove(this);
    809                 // Call exit if we were the last outstanding child process thread.
     810        // Call exit if we were the last outstanding child process thread.
    810811        if(apps.size() == 0 && exit == true) {
    811812        stopServerEXE();
Note: See TracChangeset for help on using the changeset viewer.