- Timestamp:
- 2005-09-26T14:49:03+12:00 (19 years ago)
- File:
-
- 1 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 {
Note:
See TracChangeset
for help on using the changeset viewer.