Changeset 10454


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

Uploading the collect.cfg file is now done in the save() function of CollectionConfiguration.

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

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r10377 r10454  
    4444import org.greenstone.gatherer.util.StaticStrings;
    4545import org.greenstone.gatherer.util.XMLTools;
     46import org.greenstone.gatherer.util.ZipTools;
    4647import org.w3c.dom.*;
    4748
     
    516517        // If we're using a remote Greenstone server, upload the new collect.cfg file
    517518        if (Gatherer.isGsdlRemote) {
    518             RemoteGreenstoneServer.uploadCollectionFile(collect_cfg_file);
     519            String collection_name = Gatherer.c_man.getCollection().getName();
     520            ZipTools.zipup(Gatherer.getCollectDirectoryPath(), collection_name, "collect.cfg", null, "", "");
     521            RemoteGreenstoneServer.upload_url_zip(collection_name, "etc", "", null);
    519522        }
    520523        }
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java

    r10259 r10454  
    215215    /** Cause the current collection configuration to be written out to disk.
    216216     */
    217     public void save() {
    218     System.err.println("Config file saved. The level of processing needed is: " + CollectionDesignManager.getRebuildTypeRequired()); //debug
     217    public void save()
     218    {
    219219    // Release collection as necessary
    220220    String collection_name = Gatherer.c_man.getCollection().getName();
     
    230230    collect_config.save();
    231231
    232     if (update_collect_cfg_required && Gatherer.c_man.built() && Gatherer.isGsdlRemote) {
    233         //If the GLI is running as an applet, and Format Features or Cross-Collection Searching have changed,
    234         //upload etc/collect.cfg to the server to immediately reflect these changes.
    235         ZipTools.zipup(Gatherer.getCollectDirectoryPath(), collection_name, Utility.CONFIG_FILE, null, "", "");
    236         RemoteGreenstoneServer.upload_url_zip(collection_name, "etc", "", null);
    237     }
    238    
    239232    // Read collection
    240233    if (collection_released) {
Note: See TracChangeset for help on using the changeset viewer.