Changeset 10642
- Timestamp:
- 2005-09-26T14:49:03+12:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/LocalLibraryServer.java
r10517 r10642 42 42 43 43 static private GSDLSiteConfig gsdlsite_cfg_file = null; 44 static private File local_library_server_file = null; 45 44 46 static private boolean running = false; 45 46 47 47 48 static public void addCollection(String collection_name) … … 86 87 } 87 88 88 89 89 static public void releaseCollection(String collection_name) 90 90 { … … 98 98 { 99 99 // Check the local library server.exe file exists 100 Filelocal_library_server_file = new File(local_library_server_file_path);100 local_library_server_file = new File(local_library_server_file_path); 101 101 if (!local_library_server_file.exists()) { 102 102 DebugStream.println("No local library at given file path."); … … 223 223 running = false; 224 224 } 225 226 225 226 static public void checkServerRunning() { 227 gsdlsite_cfg_file.load(); 228 if (gsdlsite_cfg_file.getURL() == null) { 229 // need to restart the server again 230 gsdlsite_cfg_file.set(); 231 232 // Spawn local library server process 233 String local_library_server_command = local_library_server_file.getAbsolutePath() + " " + gsdlsite_cfg_file.getSiteConfigFilename(); 234 Gatherer.spawnApplication(local_library_server_command); 235 236 } 237 } 227 238 static private class OneSecondWait 228 239 { -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r10531 r10642 48 48 import org.greenstone.gatherer.Dictionary; 49 49 import org.greenstone.gatherer.Gatherer; 50 import org.greenstone.gatherer.LocalLibraryServer; 50 51 import org.greenstone.gatherer.cdm.SearchTypeManager; 51 52 import org.greenstone.gatherer.cdm.CollectionDesignManager; … … 799 800 Gatherer.c_man.getCollection().cdm.save(); // save the config file just in case 800 801 configureHomeURL(); 802 if (LocalLibraryServer.isRunning()) { 803 // if we are using the local library (isRunning is true), we need to make sure it is actually running 804 LocalLibraryServer.checkServerRunning(); 805 } 801 806 Gatherer.spawnBrowser(homepage); 802 807
Note:
See TracChangeset
for help on using the changeset viewer.