Changeset 8620 for trunk/gli/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2004-11-23T09:29:02+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r8601 r8620 38 38 import org.greenstone.gatherer.Gatherer; 39 39 import org.greenstone.gatherer.GathererApplet; 40 import org.greenstone.gatherer. util.GSDLSiteConfig;40 import org.greenstone.gatherer.LocalLibraryServer; 41 41 import org.greenstone.gatherer.util.Utility; 42 42 import org.w3c.dom.*; … … 200 200 public void save() { 201 201 // Release collection as necessary 202 String collection_name = Gatherer.c_man.getCollection().getName(); 202 203 boolean collection_released = false; 203 String col_name = Gatherer.c_man.getCollection().getName();204 204 boolean formats_changed = format_manager.formatsChanged(); 205 205 206 if (formats_changed && Gatherer.c_man.built() && Configuration.exec_file != null) {206 if (formats_changed && Gatherer.c_man.built() && LocalLibraryServer.isRunning() == true) { 207 207 // Release the collection 208 Gatherer.configServer(GSDLSiteConfig.RELEASE_COMMAND + col_name); 209 // This is very important -- it ensures that the above command has finished 210 Gatherer.configServer(""); 208 LocalLibraryServer.releaseCollection(collection_name); 211 209 collection_released = true; 212 210 } … … 218 216 if (formats_changed && Gatherer.c_man.built()) { 219 217 // upload etc/collect.cfg to server to reflect changes 220 Utility.zipup(col _name,Utility.CONFIG_FILE);221 GathererApplet.upload_url_zip(col _name,"etc");218 Utility.zipup(collection_name, Utility.CONFIG_FILE); 219 GathererApplet.upload_url_zip(collection_name, "etc"); 222 220 } 223 221 } … … 226 224 if (collection_released) { 227 225 // Now re-add collection to server to force format commands to be processed 228 Gatherer.configServer(GSDLSiteConfig.ADD_COMMAND + col_name); 229 // This is very important -- it ensures that the above command has finished 230 Gatherer.configServer(""); 226 LocalLibraryServer.addCollection(collection_name); 231 227 } 232 228
Note:
See TracChangeset
for help on using the changeset viewer.