Last change
on this file since 29845 was 29845, checked in by ak19, 9 years ago |
Modified gs3-server dialog to have an Allow External Connections checkbox to match with GS2. Affects org/greenstone/server code and server.properties file, greenstone.xml.in of tomcat, build.xml and build.properties
|
File size:
1.3 KB
|
Line | |
---|
1 | package org.greenstone.server;
|
---|
2 |
|
---|
3 | public class BaseProperty {
|
---|
4 |
|
---|
5 | public final String GSDL_HOME;
|
---|
6 | public final String GSDL_VERSION;
|
---|
7 | public final String AUTOSTART;
|
---|
8 | public final String KEEPPORT;
|
---|
9 | public final String START_BROWSER;
|
---|
10 | public final String ALLOW_EXTERNAL_ACCESS;
|
---|
11 |
|
---|
12 | public final String DEFAULT_SERVLET = "server.default.servlet";
|
---|
13 |
|
---|
14 | public final String WEB_PORT;
|
---|
15 |
|
---|
16 | public static final String WIN_9X_OPEN_COMMAND = "command.com /c start %1";
|
---|
17 | public static final String WIN_OPEN_COMMAND = "cmd.exe /c start \"\" %1";
|
---|
18 | public static final String MAC_OPEN_COMMAND = "open %1";
|
---|
19 |
|
---|
20 | public final String BROWSER_PATH = "browser.path";
|
---|
21 |
|
---|
22 | public final String SERVER_CONTROL;
|
---|
23 | public final String SERVER_SETTINGS;
|
---|
24 |
|
---|
25 | protected BaseProperty(String version,
|
---|
26 | String web_port,
|
---|
27 | String autostart,
|
---|
28 | String startbrowser,
|
---|
29 | String keepport,
|
---|
30 | String allowExternalAccess)
|
---|
31 | {
|
---|
32 | // property names
|
---|
33 | WEB_PORT = web_port;
|
---|
34 | GSDL_HOME = "gsdl"+version +".home";
|
---|
35 | GSDL_VERSION = "gsdl"+version+".version";
|
---|
36 | SERVER_CONTROL = "Server"+version+"Control";
|
---|
37 | SERVER_SETTINGS = "Server"+version+"Settings";
|
---|
38 | AUTOSTART = autostart;
|
---|
39 | START_BROWSER = startbrowser;
|
---|
40 | KEEPPORT = keepport;
|
---|
41 | ALLOW_EXTERNAL_ACCESS = allowExternalAccess;
|
---|
42 | }
|
---|
43 |
|
---|
44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.