- Timestamp:
- 2003-06-12T12:06:40+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r4556 r4594 278 278 * @param message The message as a <strong>String</strong>. 279 279 */ 280 public void debug(String message) {281 282 }280 // public void debug(String message) { 281 //debug(null, message); 282 // } 283 283 /** Writes a message to the debug filestream. 284 284 * @param error The <strong>Exception</strong> associated with this message, or <i>null</i> for no exception. … … 288 288 * @see java.lang.Exception 289 289 */ 290 public void debug(Exception exception, String message) {291 292 293 294 295 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 // } 298 298 /** Exits the Gatherer after ensuring that things needing saving are saved. 299 299 * @see java.io.FileOutputStream … … 795 795 */ 796 796 public void run() { 797 797 // Call an external process using the args. 798 798 try { 799 debug("Running " + command);799 println("Running " + command); 800 800 Runtime rt = Runtime.getRuntime(); 801 801 process = rt.exec(command); … … 803 803 } 804 804 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. 808 809 apps.remove(this); 809 810 // Call exit if we were the last outstanding child process thread. 810 811 if(apps.size() == 0 && exit == true) { 811 812 stopServerEXE();
Note:
See TracChangeset
for help on using the changeset viewer.