greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16251

Show
Ignore:
Timestamp:
2008-06-30 15:08:32 (2 months ago)
Author:
ak19
Message:

Fixed erroneous use of Debug instead of DebugStream? in previous commit, moved some general code out of if clause that checks that greenstone is not remote in loadCollectionInternal()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java

    r16250 r16251  
    12331233                     
    12341234                } catch (IOException ioe) { 
    1235                     Debug.printStackTrace(ioe); 
     1235                    DebugStream.printStackTrace(ioe); 
    12361236                } 
    12371237                 
     
    12611261                        bor.close(); 
    12621262                    } catch (IOException ioe) {   
    1263                         Debug.printStackTrace(ioe); 
     1263                        DebugStream.printStackTrace(ioe); 
    12641264                    }   
    12651265                     
     
    12691269                        new_collection_file.renameTo(collection_file);  
    12701270                    } catch (Exception e) {  
    1271                         Debug.printStackTrace(ioe); 
     1271                        DebugStream.printStackTrace(e); 
    12721272                    }  
    12731273                } 
    1274                  
    1275                 // Open the collection file 
    1276                 this.collection = new Collection(collection_file); 
    1277                 if (collection.error) { 
    1278                     collection = null; 
    1279                     // Remove lock file 
    1280                     if (lock_file.exists()) { 
    1281                         lock_file.delete(); 
    1282                     } 
    1283                     throw(new Exception(Dictionary.get("CollectionManager.Missing_Config"))); // this error message does not agree with the error 
    1284                 } 
    1285                  
     1274            } 
     1275             
     1276            // Open the collection file 
     1277            this.collection = new Collection(collection_file); 
     1278            if (collection.error) { 
     1279                collection = null; 
     1280                // Remove lock file 
     1281                if (lock_file.exists()) { 
     1282                    lock_file.delete(); 
     1283                } 
     1284                throw(new Exception(Dictionary.get("CollectionManager.Missing_Config"))); // this error message does not agree with the error 
     1285            } 
     1286             
     1287            if (!Gatherer.isGsdlRemote) { 
    12861288                scheduling(); 
    12871289            }