source: main/trunk/greenstone3/src/java/org/greenstone/server/BaseProperty.java@ 22054

Last change on this file since 22054 was 22054, checked in by ak19, 14 years ago

Modified BaseProperty so that the "start" commands for different operating systems is stored statically which is helpful for BrowserLauncher

File size: 1.0 KB
Line 
1package org.greenstone.server;
2
3public class BaseProperty {
4
5 public final String GSDL_HOME;
6 public final String GSDL_VERSION;
7 public final String AUTOSTART;
8 public final String START_BROWSER;
9
10 public final String DEFAULT_SERVLET = "server.default.servlet";
11
12 public final String WEB_PORT;
13
14 public static final String WIN_9X_OPEN_COMMAND = "command.com /c start %1";
15 public static final String WIN_OPEN_COMMAND = "cmd.exe /c start \"\" %1";
16 public static final String MAC_OPEN_COMMAND = "open %1";
17
18 public final String BROWSER_PATH = "browser.path";
19
20 public final String SERVER_CONTROL;
21 public final String SERVER_SETTINGS;
22
23 protected BaseProperty(String version, String web_port, String autostart, String startbrowser)
24 {
25 // property names
26 WEB_PORT = web_port;
27 GSDL_HOME = "gsdl"+version +".home";
28 GSDL_VERSION = "gsdl"+version+".version";
29 SERVER_CONTROL = "Server"+version+"Control";
30 SERVER_SETTINGS = "Server"+version+"Settings";
31 AUTOSTART = autostart;
32 START_BROWSER = startbrowser;
33 }
34
35}
Note: See TracBrowser for help on using the repository browser.