Changeset 24906
- Timestamp:
- 2011-12-15T22:00:44+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/greenstone/LocalLibraryServer.java
r24508 r24906 411 411 + "\nto the LocalLibraryServer.\n" + e); 412 412 } 413 if(success) { 413 if(success) { 414 414 Gatherer.terminateApplication(ID); 415 415 } else { … … 910 910 if(configFile != null) { 911 911 // Delete the file 912 configFile.delete(); 912 //configFile.delete(); 913 914 // Not restoring nor deleting here. Just removing the URL (which indicates a running server), 915 // so that the file's state indicates the server has stopped, and then saving the property file. 916 // Should all properties not defined in the llssite.cfg.in template be removed below? 917 String urlPropertyName = isIndependentGSI() ? GSI_URL : URL; 918 remove(urlPropertyName); 919 920 remove("gsdlhome"); 921 remove("collecthome"); 922 remove("gdbmhome"); 923 remove("logfilename"); 924 925 // For some reason launching GLI with server.exe clobbers autoenter and startbrowser 926 // values for independent GSI in llssite.cfg file, and gli.autoenter and gli.startbrowser. 927 // So set them here. 928 if(get(GSI_AUTOENTER) == null) { 929 put(GSI_AUTOENTER, "0"); 930 } 931 if(get(GSI_STARTBROWSER) == null) { 932 put(GSI_STARTBROWSER, "1"); 933 } 934 if(get(AUTOENTER) == null) { 935 put(AUTOENTER, "1"); 936 } 937 if(get(STARTBROWSER) == null) { 938 put(STARTBROWSER, "0"); 939 } 940 save(); 913 941 } 914 942 else {
Note:
See TracChangeset
for help on using the changeset viewer.