- Timestamp:
- 2009-04-01T19:31:09+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/server/BaseServerSettings.java
r18710 r18868 44 44 45 45 try { 46 this.portNum = Integer.parseInt(server. build_properties.getProperty(BaseServer.Property.WEB_PORT));46 this.portNum = Integer.parseInt(server.config_properties.getProperty(BaseServer.Property.WEB_PORT)); 47 47 } 48 48 catch(Exception e){ … … 50 50 } 51 51 52 this.browserPath = server. build_properties.getProperty(BaseServer.Property.BROWSER_PATH);52 this.browserPath = server.config_properties.getProperty(BaseServer.Property.BROWSER_PATH); 53 53 54 54 if (this.browserPath == null || this.browserPath.equals("")){ … … 60 60 } 61 61 62 String auto_start_str = server. build_properties.getProperty(BaseServer.Property.AUTOSTART);62 String auto_start_str = server.config_properties.getProperty(BaseServer.Property.AUTOSTART); 63 63 if ((auto_start_str.trim()).equals("true")) { 64 64 this.autoStart = true; … … 222 222 223 223 public void actionPerformed(ActionEvent ev) { 224 // save everything to build_properties if things have changed224 // save everything to config_properties if things have changed 225 225 boolean has_changed = false; 226 226 boolean require_restart = false; … … 268 268 269 269 ScriptReadWrite scriptReadWrite = new ScriptReadWrite(); 270 oldFileLines = scriptReadWrite.readInFile(BaseServer. build_properties_file);270 oldFileLines = scriptReadWrite.readInFile(BaseServer.config_properties_file); 271 271 272 272 newFileLines = scriptReadWrite.queryReplace(oldFileLines, BaseServer.Property.WEB_PORT, portNum+""); … … 284 284 newFileLines = scriptReadWrite.queryReplace(newFileLines,BaseServer.Property.BROWSER_PATH, browserPath); 285 285 286 scriptReadWrite.writeOutFile(BaseServer. build_properties_file,286 scriptReadWrite.writeOutFile(BaseServer.config_properties_file, 287 287 newFileLines); 288 server.reload BuildProperties();288 server.reloadConfigProperties(); 289 289 if (require_restart){ 290 290 JOptionPane.showMessageDialog(null,server.dictionary.get("ServerSetting.SettingChanged"),"Info", JOptionPane.INFORMATION_MESSAGE);
Note:
See TracChangeset
for help on using the changeset viewer.