Changeset 8236 for trunk/gli/src/org/greenstone/gatherer/shell/GShell.java
- Timestamp:
- 2004-10-08T09:46:12+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GShell.java
r8231 r8236 45 45 import javax.swing.tree.*; 46 46 import org.greenstone.gatherer.Configuration; 47 import org.greenstone.gatherer.DebugStream; 47 48 import org.greenstone.gatherer.Dictionary; 48 49 import org.greenstone.gatherer.Gatherer; … … 119 120 } 120 121 catch(Exception exception) { 121 Gatherer.printStackTrace(exception);122 DebugStream.printStackTrace(exception); 122 123 } 123 124 return process_running; … … 173 174 if(line_buffer.length() > 0) { 174 175 String line = line_buffer.toString(); 175 Gatherer.println("* " + line + " *");176 DebugStream.println("* " + line + " *"); 176 177 fireMessage(type, typeAsString(type) + "> " + line, status, bos); 177 178 line = null; … … 196 197 if(line_buffer.length() > 0) { 197 198 String line = line_buffer.toString(); 198 // Gatherer.println("* " + line + " *");199 // DebugStream.println("* " + line + " *"); 199 200 fireMessage(type, typeAsString(type) + "> " + line, status, bos); 200 201 line_buffer = new StringBuffer(); … … 316 317 catch (Exception exception) { 317 318 System.err.println("Exception in GShell.runRemote() - unexpected"); 318 Gatherer.printStackTrace(exception);319 DebugStream.printStackTrace(exception); 319 320 status = ERROR; 320 321 } … … 330 331 } 331 332 332 Gatherer.println("Command: "+command);333 DebugStream.println("Command: "+command); 333 334 ///ystem.err.println("Command: " + command); 334 335 fireMessage(type, Dictionary.get("GShell.Command") + ": " + command, status, null); … … 377 378 if(eline_buffer.length() > 0) { 378 379 String eline = eline_buffer.toString(); 379 // Gatherer.println("Last bit of eline: " + eline);380 //DebugStream.println("Last bit of eline: " + eline); 380 381 fireMessage(type, typeAsString(type) + "> " + eline, status, bos); 381 382 eline = null; … … 384 385 if(stdline_buffer.length() > 0) { 385 386 String stdline = stdline_buffer.toString(); 386 // Gatherer.println("Last bit of stdline: " + stdline);387 //DebugStream.println("Last bit of stdline: " + stdline); 387 388 fireMessage(type, typeAsString(type) + "> " + stdline, status, null); 388 389 stdline = null; … … 425 426 // Exception 426 427 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); 429 430 status = ERROR; 430 431 } … … 453 454 } 454 455 catch (Exception error) { 455 Gatherer.printStackTrace(error);456 DebugStream.printStackTrace(error); 456 457 } 457 458 } … … 581 582 } 582 583 catch(Exception error) { 583 Gatherer.printStackTrace(error);584 DebugStream.printStackTrace(error); 584 585 } 585 586 } … … 617 618 } 618 619 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); 621 622 } 622 623 }
Note:
See TracChangeset
for help on using the changeset viewer.