Changeset 8236 for trunk/gli/src/org/greenstone/gatherer/util/Utility.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/util/Utility.java
r8231 r8236 47 47 import org.apache.xml.serialize.*; 48 48 import org.greenstone.gatherer.Configuration; 49 import org.greenstone.gatherer.DebugStream; 49 50 import org.greenstone.gatherer.Dictionary; 50 51 import org.greenstone.gatherer.Gatherer; … … 259 260 catch (Exception exception) { 260 261 if(!file.getName().endsWith(METADATA_XML)) { 261 Gatherer.printStackTrace(exception);262 DebugStream.printStackTrace(exception); 262 263 return false; 263 264 } … … 740 741 ZipEntry zipentry = (ZipEntry) e.nextElement(); 741 742 String zentryname = dst_dir + zipentry.getName(); 742 Gatherer.println(" Unzipping: " + zentryname);743 DebugStream.println(" Unzipping: " + zentryname); 743 744 744 745 if (zipentry.isDirectory()) { … … 774 775 catch (ZipException error) { 775 776 System.err.println("Error: Unable to open '"+zip_file.getAbsolutePath()+"'"); 776 Gatherer.printStackTrace(error);777 DebugStream.printStackTrace(error); 777 778 } 778 779 … … 977 978 } 978 979 979 Gatherer.println(" Zipping up: " + file_path);980 DebugStream.println(" Zipping up: " + file_path); 980 981 } 981 982 … … 1092 1093 ZipEntry zipentry = (ZipEntry) e.nextElement(); 1093 1094 String zentryname = col_dir + zipentry.getName(); 1094 Gatherer.println(" Unzipping: " + zentryname);1095 DebugStream.println(" Unzipping: " + zentryname); 1095 1096 1096 1097 if (zipentry.isDirectory()) { … … 1126 1127 catch (ZipException error) { 1127 1128 System.err.println("Error: Unable to open '"+zip_fname+"'"); 1128 Gatherer.printStackTrace(error);1129 DebugStream.printStackTrace(error); 1129 1130 } 1130 1131 … … 1313 1314 try { 1314 1315 if (file.exists()) { 1315 Gatherer.println("Parsing XML file: " + file);1316 DebugStream.println("Parsing XML file: " + file); 1316 1317 FileInputStream fis = new FileInputStream(file); 1317 1318 document = parse(fis, noisey); … … 1321 1322 if(noisey) { 1322 1323 error.printStackTrace(); 1323 Gatherer.println("Exception in Utility.parse() - Unexpected");1324 DebugStream.println("Exception in Utility.parse() - Unexpected"); 1324 1325 } 1325 1326 else { 1326 Gatherer.println("Exception in Utility.parse() - Expected");1327 Gatherer.printStackTrace(error);1327 DebugStream.println("Exception in Utility.parse() - Expected"); 1328 DebugStream.printStackTrace(error); 1328 1329 } 1329 1330 } … … 1345 1346 if(noisey) { 1346 1347 error.printStackTrace(); 1347 Gatherer.println("Exception in Utility.parse() - Unexpected");1348 DebugStream.println("Exception in Utility.parse() - Unexpected"); 1348 1349 } 1349 1350 else { 1350 Gatherer.println("Exception in Utility.parse() - Expected");1351 Gatherer.printStackTrace(error);1351 DebugStream.println("Exception in Utility.parse() - Expected"); 1352 DebugStream.printStackTrace(error); 1352 1353 } 1353 1354 } … … 1382 1383 if(noisey) { 1383 1384 error.printStackTrace(); 1384 Gatherer.println("Exception in Utility.parse() - Unexpected");1385 DebugStream.println("Exception in Utility.parse() - Unexpected"); 1385 1386 } 1386 1387 else { 1387 Gatherer.println("Exception in Utility.parse() - Expected");1388 } 1389 Gatherer.printStackTrace(error);1388 DebugStream.println("Exception in Utility.parse() - Expected"); 1389 } 1390 DebugStream.printStackTrace(error); 1390 1391 } 1391 1392 return document; … … 1445 1446 } 1446 1447 else { 1447 // Gatherer.println("Zero length argument xml detected for: " + form);1448 //DebugStream.println("Zero length argument xml detected for: " + form); 1448 1449 String[] margs = new String[1]; 1449 1450 margs[0] = form;
Note:
See TracChangeset
for help on using the changeset viewer.