Changeset 10456


Ignore:
Timestamp:
2005-08-10T13:13:14+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now allows "-removeold" to be switched off for import.pl (in high modes), although it still starts on by default.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

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

    r10382 r10456  
    347347        // Now create the collection object around the directory.
    348348        collection = new Collection(new File(collection_directory_path, name + ".col"));
     349
     350        // "-removeold" is on by default for import.pl
     351        collection.import_options.setValue("removeold", true, null);
    349352
    350353        MetadataSetManager.clearMetadataSets();
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r10455 r10456  
    749749        ((GBuildProgressMonitor)build_monitor).reset();
    750750        import_monitor.setStop(false);
    751         // Set removeold automatically.
    752         if(Gatherer.c_man.ready() && Gatherer.c_man.built()) {
    753         Gatherer.c_man.getCollection().import_options.setValue("removeold", true, null);
    754         }
    755751    }
    756752    }
     
    787783        build_monitor.setStop(true);
    788784        build_monitor.reset();
    789         // Set removeold automatically.
    790         Gatherer.c_man.getCollection().import_options.setValue("removeold", true, null);
     785
    791786        // Remove the collection lock.
    792787        //Gatherer.g_man.lockCollection(false, false);
Note: See TracChangeset for help on using the changeset viewer.