Changeset 24490 for main/trunk/greenstone3
- Timestamp:
- 2011-08-26T15:27:11+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/server/BaseServerSettings.java
r24479 r24490 62 62 } 63 63 64 String auto_start_str = server.config_properties.getProperty(BaseServer.Property.AUTOSTART ).trim();64 String auto_start_str = server.config_properties.getProperty(BaseServer.Property.AUTOSTART, "1").trim(); 65 65 if (auto_start_str.equals("true") || auto_start_str.equals("1")) { 66 66 this.autoStart = true; … … 297 297 scriptReadWrite.writeOutFile(BaseServer.config_properties_file, newFileLines); 298 298 299 if(server.reloadConfigProperties(port_has_changed)) { // successful/valid configuration changes300 // if failure, it would have displayed an error message301 server.reload(); // work out the URL again in case it has changed299 boolean success = server.reloadConfigProperties(port_has_changed); // if failure, it would have displayed an error message 300 server.reload(); // work out the URL again in case it has changed 301 if(success) { // successful/valid configuration changes 302 302 if (require_restart){ 303 303 JOptionPane.showMessageDialog(null,server.dictionary.get("ServerSettings.SettingChanged"),"Info", JOptionPane.INFORMATION_MESSAGE);
Note:
See TracChangeset
for help on using the changeset viewer.