Changeset 6179
- Timestamp:
- 2003-12-09T12:15:29+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Configuration.java
r6086 r6179 125 125 } 126 126 catch (MalformedURLException error) { 127 ///ystem.err.println("Not an address."); 127 Gatherer.println("Not an address."); 128 Gatherer.printStackTrace(error); 128 129 } 129 130 } 130 131 // If the above failed, then its up to us to try and figure out what to do. 131 132 if(exec_address == null) { 132 133 // Try building a file from the given exec_path 133 134 try { 134 135 File local_file = new File(exec_path); … … 138 139 } 139 140 else { 140 ///ystem.err.println("No local library at given file path.");141 } 142 } 143 141 Gatherer.println("No local library at given file path."); 142 } 143 } 144 // All sorts of errors might be thrown by a bogus file path. 144 145 catch (Exception error) { 145 146 Gatherer.println("Not a valid file."); 146 } 147 // We can generate the path to where the local library should be and use that if it is there. 147 Gatherer.printStackTrace(error); 148 } 149 // We can generate the path to where the local library should be and use that if it is there. 148 150 if(exec_file == null) { 149 151 File server_exe = new File(gsdl_path + Utility.SERVER_EXE); … … 152 154 } 153 155 else { 154 ///ystem.err.println("No local library.");155 } 156 } 157 156 Gatherer.println("No local library."); 157 } 158 } 159 // If we get to here with no exec_address nor an exec_file its just plain not going to work. 158 160 } 159 161 else { 160 ///ystem.err.println("exec_address != null -> " + exec_address);162 Gatherer.println("exec_address != null -> " + exec_address); 161 163 } 162 164 ///ystem.err.println("Perl path."); … … 169 171 perl_path = perl_path + "perl.exe"; 170 172 } 173 171 174 // Try to reload the configuration. 172 175 File config_xml = new File(CONFIG_XML);
Note:
See TracChangeset
for help on using the changeset viewer.