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

Last change on this file since 18868 was 18868, checked in by ak19, 15 years ago

Updated Server files for Linux GS2 Local Library Server to work the same way as the Windows GS2 LLS. Basically the major difference is that build.properties is no longer used but glisite.cfg or llssite.cfg depending on whether or not gs2-server.sh is launched from gli. There are a few additional changes required for this to keep it consistent with the way the Windows GS2 LLS works: storing the preview URL in glisite.cfg/llssite.cfg while the server is running and removing it when the server has stopped, Server2.java's main method taking the configfile as an additional parameter (and corresponding adjustments in the gsicontrol.sh script of GS2).

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 final String WIN_9X_OPEN_COMMAND = "command.com /c start %1";
15 public final String WIN_OPEN_COMMAND = "cmd.exe /c start \"\" %1";
16 public 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.