source: gs3-extensions/webswing/trunk/web/etc/webswing.config.in

Last change on this file was 38945, checked in by anupama, 5 days ago

Committing the GS3 XSL and webswing.config changes to successfully run JPhind as an applet (I've confirmed the updates in the previous commit to the Java and GS3 XSL code have the applet shutdown when the user navigates away from the page). To switch between running JPhind or GsdlCollageApplet as an applet and as an application, we need to make 2 changes: 1. We need to choose between webswing.config.applet and webswing.config.application to be our new webswing.config.in file and copy this from ext/webswing/web/etc into web/ext/webswing/etc/webswing.config.in. 2. In web/interfaces/default/transform/pages/webswing-phind.xsl we need to set var isWebswingRunAsApplet to true if running as an applet or false if running as an application. More commits with improvements to follow: better way of setting webswing parameters using a javascript record, and if there's an applet element for phind on the page, we repeat the behaviour implemented for GsdlCollageApplet: we need to use any applet element on the page as a shim to read in its params to set webswing's arguments (regardless of whether we run it as an actual webswing applet or webswing application).

File size: 5.7 KB
Line 
1{
2 "/" : {
3 "path" : "/",
4 "security" : {
5 "module" : "EMBEDED",
6 "config" : {
7 "users" : [ {
8 "username" : "webswing-admin",
9 "password" : "greenstone3",
10 "roles" : [ "admin" ]
11 }, {
12 "username" : "webswing-support",
13 "password" : "greenstone3",
14 "roles" : [ "support" ]
15 }, {
16 "username" : "gli",
17 "password" : "greenstone3"
18 } ]
19 },
20 "classPath" : [ ]
21 },
22 "langFolder" : "${webswing.configDir}/lang",
23 "homeDir" : "${user.dir}",
24 "allowedCorsOrigins" : [ "*" ],
25 "adminConsoleUrl" : "http://localhost:8383/webswing-server/admin"
26 },
27 "/gli" : {
28 "path" : "/gli",
29 "security" : {
30 "module" : "NONE",
31 "config" : { },
32 "classPath" : [ ]
33 },
34 "icon" : "classes/images/gatherer.png",
35 "webFolder" : "",
36 "swingConfig" : {
37 "jreExecutable" : "${java.home}/bin/java",
38 "javaVersion" : "${java.version}",
39 "vmArgs" : "",
40 "classPathEntries" : [ "*.jar", "lib/*.jar" ],
41 "theme" : "Murrine",
42 "fontConfig" : {
43 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
44 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
45 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
46 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
47 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
48 },
49 "swingSessionTimeout" : 300,
50 "antiAliasText" : true,
51 "isolatedFs" : true,
52 "debug" : false,
53 "directdraw" : true,
54 "allowDelete" : true,
55 "allowDownload" : true,
56 "allowAutoDownload" : true,
57 "allowUpload" : true,
58 "allowJsLink" : true,
59 "allowLocalClipboard" : true,
60 "launcherType" : "Desktop",
61 "launcherConfig" : {
62 "mainClass" : "org.greenstone.gatherer.GathererProg",
63 "args": "-gsdl @gsdl3srchomeunix@/gs2build -gsdlos @gsdlos@ -gsdl3 @gsdl3srchomeunix@/web -gsdl3src @gsdl3srchomeunix@ -library_url @external-servleturl@ -webswing ${customArgs}"
64 },
65 "homeDir" : "@gsdl3srchomeunix@/gli"
66 },
67 "maxClients" : 4,
68 "maxConnections" : 4,
69 "allowStealSession" : false,
70 "name" : "Greenstone Librarian Interface",
71 "sessionMode" : "ALWAYS_NEW_SESSION",
72 "uploadMaxSize" : 1200,
73 "webHomeDir" : "@gsdl3srchomeunix@/gli",
74 "goodbyeUrl" : "/"
75 },
76 "/phind" : {
77 "path" : "/phind",
78 "security" : {
79 "module" : "NONE",
80 "config" : { },
81 "classPath" : [ ]
82 },
83
84 "webFolder" : "",
85 "swingConfig" : {
86 "jreExecutable" : "${java.home}/bin/java",
87 "javaVersion" : "${java.version}",
88 "vmArgs" : "",
89 "classPathEntries" : [ "applet/*.jar", "ext/webswing/api/webswing-api.jar" ],
90 "theme" : "Murrine",
91 "fontConfig" : {
92 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
93 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
94 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
95 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
96 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
97 },
98 "swingSessionTimeout" : 300,
99 "antiAliasText" : true,
100 "isolatedFs" : true,
101 "debug" : false,
102 "directdraw" : true,
103 "allowDelete" : false,
104 "allowDownload" : false,
105 "allowAutoDownload" : true,
106 "allowUpload" : false,
107 "allowJsLink" : true,
108 "allowLocalClipboard" : true,
109 "launcherType" : "Applet",
110 "launcherConfig" : {
111 "appletClass" : "org.greenstone.applet.phind.JPhind",
112 "parameters" : {
113 "webswing" : "1",
114 "xtraParams" : "${customArgs}"
115 }
116 },
117 "homeDir" : "@gsdl3webwritablehomeunix@"
118 },
119 "maxClients" : 4,
120 "maxConnections" : 4,
121 "allowStealSession" : false,
122 "name" : "Greenstone Phind Phrase Browser",
123 "sessionMode" : "ALWAYS_NEW_SESSION",
124 "uploadMaxSize" : 1200,
125 "webHomeDir" : "@gsdl3webwritablehomeunix@",
126 "goodbyeUrl" : "/"
127 },
128 "/collage" : {
129 "path" : "/collage",
130 "security" : {
131 "module" : "NONE",
132 "config" : { },
133 "classPath" : [ ]
134 },
135
136 "webFolder" : "",
137 "swingConfig" : {
138 "jreExecutable" : "${java.home}/bin/java",
139 "javaVersion" : "${java.version}",
140 "vmArgs" : "",
141 "classPathEntries" : [ "applet/*.jar", "ext/webswing/api/webswing-api.jar" ],
142 "theme" : "Murrine",
143 "fontConfig" : {
144 "dialog" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
145 "dialoginput" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
146 "monospaced" : "${webswing.configDir}/fonts/RobotoMono-Regular.ttf",
147 "serif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf",
148 "sansserif" : "${webswing.configDir}/fonts/Roboto-Regular.ttf"
149 },
150 "swingSessionTimeout" : 300,
151 "antiAliasText" : true,
152 "isolatedFs" : true,
153 "debug" : false,
154 "directdraw" : true,
155 "allowDelete" : false,
156 "allowDownload" : false,
157 "allowAutoDownload" : true,
158 "allowUpload" : false,
159 "allowJsLink" : true,
160 "allowLocalClipboard" : true,
161 "launcherType" : "Applet",
162 "launcherConfig" : {
163 "appletClass" : "org.greenstone.applet.GsdlCollageApplet.GsdlCollageApplet",
164 "parameters" : {
165 "webswing" : "1",
166 "xtraParams" : "${customArgs}"
167 }
168 },
169 "homeDir" : "@gsdl3webwritablehomeunix@"
170 },
171 "maxClients" : 4,
172 "maxConnections" : 4,
173 "allowStealSession" : false,
174 "name" : "Greenstone Collage Browser",
175 "sessionMode" : "ALWAYS_NEW_SESSION",
176 "uploadMaxSize" : 1200,
177 "webHomeDir" : "@gsdl3webwritablehomeunix@",
178 "goodbyeUrl" : "/"
179 }
180}
Note: See TracBrowser for help on using the repository browser.