Changeset 10454
- Timestamp:
- 2005-08-10T13:00:38+12:00 (19 years ago)
- 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 44 44 import org.greenstone.gatherer.util.StaticStrings; 45 45 import org.greenstone.gatherer.util.XMLTools; 46 import org.greenstone.gatherer.util.ZipTools; 46 47 import org.w3c.dom.*; 47 48 … … 516 517 // If we're using a remote Greenstone server, upload the new collect.cfg file 517 518 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); 519 522 } 520 523 } -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r10259 r10454 215 215 /** Cause the current collection configuration to be written out to disk. 216 216 */ 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 { 219 219 // Release collection as necessary 220 220 String collection_name = Gatherer.c_man.getCollection().getName(); … … 230 230 collect_config.save(); 231 231 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 239 232 // Read collection 240 233 if (collection_released) {
Note:
See TracChangeset
for help on using the changeset viewer.