Changeset 8236 for trunk/gli/src/org/greenstone/gatherer/Configuration.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/Configuration.java
r8231 r8236 152 152 153 153 // The exec_path may contain an url address, in which case we blindly use that and leave it up to the user to worry about settings and resetting. 154 Gatherer.println("EXEC_PATH = " + exec_path);154 DebugStream.println("EXEC_PATH = " + exec_path); 155 155 if(exec_path != null && exec_path.length() > 0) { 156 156 try { … … 158 158 } 159 159 catch (MalformedURLException error) { 160 Gatherer.println("Not an address.");161 Gatherer.printStackTrace(error);160 DebugStream.println("Not an address."); 161 DebugStream.printStackTrace(error); 162 162 } 163 163 } … … 172 172 } 173 173 else { 174 Gatherer.println("No local library at given file path.");174 DebugStream.println("No local library at given file path."); 175 175 } 176 176 } 177 177 // All sorts of errors might be thrown by a bogus file path. 178 178 catch (Exception error) { 179 Gatherer.println("Libary url does not indicate the server.exe file.");179 DebugStream.println("Libary url does not indicate the server.exe file."); 180 180 ///atherer.printStackTrace(error); 181 181 } … … 187 187 } 188 188 else { 189 Gatherer.println("No local library.");189 DebugStream.println("No local library."); 190 190 } 191 191 } … … 193 193 } 194 194 else { 195 Gatherer.println("exec_address != null -> " + exec_address);195 DebugStream.println("exec_address != null -> " + exec_address); 196 196 } 197 197 … … 248 248 if(general_config == null) { 249 249 general_config = Utility.parse(TEMPLATE_CONFIG_XML, true); 250 Gatherer.println("Loaded default Gatherer configuration template.");250 DebugStream.println("Loaded default Gatherer configuration template."); 251 251 } 252 252 else { 253 Gatherer.println("Loaded current Gatherer configuration.");253 DebugStream.println("Loaded current Gatherer configuration."); 254 254 } 255 255 … … 292 292 } 293 293 } 294 Gatherer.println("EXEC_FILE = " + exec_file);295 Gatherer.println("EXEC_ADDRESS = " + exec_address);294 DebugStream.println("EXEC_FILE = " + exec_file); 295 DebugStream.println("EXEC_ADDRESS = " + exec_address); 296 296 } 297 297 … … 322 322 } 323 323 catch (Exception exception) { 324 Gatherer.printStackTrace(exception);324 DebugStream.printStackTrace(exception); 325 325 } 326 326 return result; … … 424 424 } 425 425 catch(Exception error) { 426 Gatherer.printStackTrace(error);426 DebugStream.printStackTrace(error); 427 427 } 428 428 return result; … … 469 469 } 470 470 catch(Exception exception) { 471 Gatherer.printStackTrace(exception);471 DebugStream.printStackTrace(exception); 472 472 } 473 473 return special_directories; … … 510 510 } 511 511 catch(Exception error) { 512 Gatherer.printStackTrace(error);512 DebugStream.printStackTrace(error); 513 513 } 514 514 return result; … … 523 523 } 524 524 catch(Exception error) { 525 Gatherer.printStackTrace(error);525 DebugStream.printStackTrace(error); 526 526 } 527 527 return result; … … 555 555 } 556 556 catch(Exception error) { 557 Gatherer.printStackTrace(error);557 DebugStream.printStackTrace(error); 558 558 } 559 559 return result; … … 690 690 } 691 691 catch(Exception error) { 692 Gatherer.printStackTrace(error);692 DebugStream.printStackTrace(error); 693 693 } 694 694 return file; … … 724 724 static public void set(String property, boolean general, boolean value) { 725 725 if(property.startsWith("workflow")) { 726 Gatherer.println("Set property: " + property + ", general=" + general + ", value=" + value);726 DebugStream.println("Set property: " + property + ", general=" + general + ", value=" + value); 727 727 } 728 728 setString(property, general, (value ? "true" : "false")); … … 756 756 } 757 757 catch (Exception error) { 758 Gatherer.println("Error in Configuration.setArguments(): " + error);759 Gatherer.printStackTrace(error);758 DebugStream.println("Error in Configuration.setArguments(): " + error); 759 DebugStream.printStackTrace(error); 760 760 } 761 761 } … … 867 867 /** Sets the value of the named property argument using the given string. */ 868 868 static public void setString(String property, boolean general, String value) { 869 Gatherer.println("Set configuration property: " + property + " = " + value + (general ? "" : " [Collection]"));869 DebugStream.println("Set configuration property: " + property + " = " + value + (general ? "" : " [Collection]")); 870 870 try { 871 871 Document document = general_config;
Note:
See TracChangeset
for help on using the changeset viewer.