Changeset 19780

Show
Ignore:
Timestamp:
10.06.2009 11:06:45 (10 years ago)
Author:
kjdon
Message:

when loading up an old collection, remove 'removeold' and 'keepold' from import options - GLI used to add in removeold (and keepold?) but it is an error now to use it as GLI uses full/incremental-import scripts, not import.pl

Files:
1 modified

Legend:

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

    r19430 r19780  
    568568        collection = new Collection(new File(collection_directory_path, name + ".col")); 
    569569 
    570         // "-removeold" is on by default for import.pl (not anymore; it would wreck incremental import) 
    571         //collection.import_options.setValue("removeold", true, null); 
    572  
    573570        // for remote case, scheduling causes an Exception on creating a new collection that  
    574571        // can't be recovered from. For GS3, it doesn't work since it it trying to access etc/main.cfg 
     
    13441341        } 
    13451342       
     1343        // These may have been set in the past, but are no longer used  
     1344        // by GLI 
     1345        collection.import_options.removeValue("removeold"); 
     1346        collection.import_options.removeValue("keepold"); 
     1347 
    13461348            MetadataSetManager.clearMetadataSets(); 
    13471349        MetadataSetManager.loadMetadataSets(collection_metadata_directory);