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/shell/GShell.java

    r8231 r8236  
    4545import javax.swing.tree.*;
    4646import org.greenstone.gatherer.Configuration;
     47import org.greenstone.gatherer.DebugStream;
    4748import org.greenstone.gatherer.Dictionary;
    4849import org.greenstone.gatherer.Gatherer;
     
    119120    }
    120121    catch(Exception exception) {
    121         Gatherer.printStackTrace(exception);
     122        DebugStream.printStackTrace(exception);
    122123    }
    123124    return process_running;
     
    173174        if(line_buffer.length() > 0) {
    174175            String line = line_buffer.toString();
    175             Gatherer.println("* " + line + " *");
     176            DebugStream.println("* " + line + " *");
    176177            fireMessage(type, typeAsString(type) + "> " + line, status, bos);
    177178            line = null;
     
    196197        if(line_buffer.length() > 0) {
    197198        String line = line_buffer.toString();
    198         // Gatherer.println("* " + line + " *");
     199        // DebugStream.println("* " + line + " *");
    199200        fireMessage(type, typeAsString(type) + "> " + line, status, bos);
    200201        line_buffer = new StringBuffer();
     
    316317    catch (Exception exception) {
    317318        System.err.println("Exception in GShell.runRemote() - unexpected");
    318         Gatherer.printStackTrace(exception);
     319        DebugStream.printStackTrace(exception);
    319320        status = ERROR;
    320321    }
     
    330331        }
    331332       
    332         Gatherer.println("Command: "+command);
     333        DebugStream.println("Command: "+command);
    333334        ///ystem.err.println("Command: " + command);
    334335        fireMessage(type, Dictionary.get("GShell.Command") + ": " + command, status, null);
     
    377378        if(eline_buffer.length() > 0) {
    378379            String eline = eline_buffer.toString();
    379             //Gatherer.println("Last bit of eline: " + eline);
     380            //DebugStream.println("Last bit of eline: " + eline);
    380381            fireMessage(type, typeAsString(type) + "> " + eline, status, bos);
    381382            eline = null;
     
    384385        if(stdline_buffer.length() > 0) {
    385386            String stdline = stdline_buffer.toString();
    386             //Gatherer.println("Last bit of stdline: " + stdline);
     387            //DebugStream.println("Last bit of stdline: " + stdline);
    387388            fireMessage(type, typeAsString(type) + "> " + stdline, status, null);
    388389            stdline = null;
     
    425426    // Exception
    426427    catch (Exception exception) {
    427         Gatherer.println("Exception in GShell.runLocal() - unexpected");
    428         Gatherer.printStackTrace(exception);
     428        DebugStream.println("Exception in GShell.runLocal() - unexpected");
     429        DebugStream.printStackTrace(exception);
    429430        status = ERROR;
    430431    }
     
    453454        }
    454455        catch (Exception error) {
    455             Gatherer.printStackTrace(error);
     456            DebugStream.printStackTrace(error);
    456457        }
    457458        }
     
    581582        }
    582583        catch(Exception error) {
    583         Gatherer.printStackTrace(error);
     584        DebugStream.printStackTrace(error);
    584585        }
    585586    }
     
    617618        }
    618619        catch(Exception exception) {
    619         Gatherer.println("Exception in GShell.fireMessage() - unexpected");
    620         Gatherer.printStackTrace(exception);
     620        DebugStream.println("Exception in GShell.fireMessage() - unexpected");
     621        DebugStream.printStackTrace(exception);
    621622        }
    622623    }
Note: See TracChangeset for help on using the changeset viewer.