source: main/trunk/release-kits/kits/rk3/installer/antinstall-config.xml@ 30052

Last change on this file since 30052 was 30052, checked in by ak19, 9 years ago

Installer language selection now uses a dropdown in place of radio buttons to accomodate additional language translations submitted for the gsinstaller module. To get the dropdown <large-select> to work like the radio buttons <select>, Dr Bainbridge figured out that Oran had made some code changes to <select> in AntInstaller's LoadConfigFilter.java. Added the same change in for the <large-select> and then needed to port Oran's additional changes to SelectInput.java into LargeSelectInput.java (didn't put the changes in the superclass InputField.java since a lot of other AntInstaller classes inherit from that).

File size: 6.8 KB
RevLine 
[15097]1<?xml version="1.0" encoding="UTF-8"?>
[14982]2<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.8.dtd">
[15213]3
[14982]4<installer
5 ui="swing,text"
6 verbose="true"
7 debug="false"
8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
[17281]9 name="Greenstone@version@ Installer"
[16003]10 windowIcon="/resources/icon.png"
11 defaultImageResource="/resources/header.png"
[14982]12 minJavaVersion="1.4">
13
[17538]14 <!-- select language page -->
[30052]15 <!-- We want a dropdown for installer language selection.
16 <select> is rendered as radio buttons in the GUI version.
17 antinstaller.sourceforge.net/manual.html
18 <large-select>: "The large select has identical options to the select input.
19 Large select enables the list of options to be greater and is displayed differently.
20 In the Swing GUI the options are rendered as a drop-down list.
21 In the text/console UI the options are shown to the user 20 lines at a time."
22 An example: https://github.com/ykyuen/maven-h2o/blob/master/h2o-installer/ant-installer/antinstall-config.xml
23
24 However, to get <large-select> to work as <select> did, needed to modify the AntInstaller code itself
25 in release-kits\shared\core\ant-installer\src\org\tp23\antinstaller\runtime\exe\LoadConfigFilter.java,
26 and also bring the code in antinstaller\input\LargeSelectInput.java up to speed with Oran's changes to <select>
27 in ant-installer\src\org\tp23\antinstaller\input\SelectInput.java
28
29 <option value="hy" text="Armenian"/>
30 <option value="jp" text="日本語 (Japanese)"/>
31 -->
[17538]32 <page type="input" name="language-selector" displayText="">
33 <comment name="language-selector-explanation"/>
[30052]34 <large-select property="language" defaultValue="en" displayText="" useAsLocale="true">
[17538]35 <option value="en" text="English"/>
[17702]36 <option value="fr" text="Français (French)"/>
37 <option value="es" text="Español (Spanish)"/>
[17849]38 <option value="de" text="Deutsch (German)"/>
[17702]39 <option value="ru" text="русскОй язык (Russian)"/>
40 <option value="zh" text="äž­æ–‡ (Chinese)"/>
[18723]41 <option value="ar" text="Arabic"/>
[30052]42 <option value="kk" text="Қазақ (Kazakh)"/>
43 </large-select>
[17538]44 </page>
45
[19935]46 <!-- welcome page -->
[17788]47 <page type="input" name="intro" displayText="">
[19790]48 <comment name="welcome-greenstone3"/>
[14982]49 </page>
50
51 <!-- type="license" shows a license page to click through -->
[15205]52 <page type="license" name="license" resource="/LICENSE.txt" displayText="" />
[14982]53
[15205]54 <!-- install destination page -->
[15213]55 <page type="input" name="destination" displayText="">
[14982]56
[23816]57 <!-- NO FLAX START -->
58
[19959]59 <!-- if linux|mac -->
[15205]60 <directory property="installDir"
[19755]61 defaultValue="/usr/local/Greenstone3,${env.HOME}/Greenstone3"
[15205]62 create="true"
[17624]63 displayText=""
64 flagFile="_uninst"
65 flagFileExistsProperty="ISInstallDetected"
66 />
[19959]67 <!-- /if -->
68 <!-- if windows -->
69 <directory property="installDir"
70 defaultValue="C:\Program Files\Greenstone3,${env.HOMEDRIVE}${env.HOMEPATH}\Greenstone3"
71 create="true"
72 displayText=""
73 flagFile="_uninst"
74 flagFileExistsProperty="ISInstallDetected"
75 />
76 <!-- /if -->
[14982]77
[23816]78 <!-- NO FLAX END -->
79
80 <!-- FLAX START -->
81
82 <!-- if linux|mac -->
83 <directory property="installDir"
84 defaultValue="/usr/local/FLAX,${env.HOME}/FLAX"
85 create="true"
86 displayText=""
87 flagFile="_uninst"
88 flagFileExistsProperty="ISInstallDetected"
89 />
90 <!-- /if -->
91 <!-- if windows -->
92 <directory property="installDir"
93 defaultValue="C:\Program Files\FLAX,${env.HOMEDRIVE}${env.HOMEPATH}\FLAX"
94 create="true"
95 displayText=""
96 flagFile="_uninst"
97 flagFileExistsProperty="ISInstallDetected"
98 />
99 <!-- /if -->
100
101 <!-- FLAX END -->
102
[14982]103 </page>
104
[19935]105 <!-- page to stop you going forward if an IS installation is detected -->
[17624]106 <page type="input" name="dontBudge" displayText="" ifProperty="(${ISInstallDetected}==true)" showNextButton="false">
107 <comment name="is-install-detected"/>
108 </page>
109
[19935]110 <!-- page to choose components -->
[15213]111 <page type="input" name="selector" displayText="">
[15205]112 <comment name="choose-components"/>
[14982]113
[17764]114 <target
[17765]115 target="Initialising"
[17764]116 diskRequirement="x"
117 defaultValue="true"
118 displayText="x"
119 force="true"
120 hidden="true"/>
121
[17281]122 <target
[17596]123 target="Installing Core System"
[17281]124 diskRequirement="@component.size.core@"
[17652]125 displayText=""
[17281]126 defaultValue="true"
[17652]127 force="true"/>
128
[24216]129 <!-- NO FLAX START -->
130
[17281]131 <target
[29337]132 target="Adjusting Permissions"
133 diskRequirement="x"
134 defaultValue="true"
135 displayText="x"
136 hidden="true"/>
137
138 <target
[17646]139 target="Installing ImageMagick"
140 diskRequirement="@component.size.imagemagick@"
141 defaultValue="true"
142 displayText=""/>
143
[19935]144 <!-- if windows|mac -->
[17646]145 <target
[19935]146 target="Installing Ghostscript"
147 diskRequirement="@component.size.ghostscript@"
148 defaultValue="true"
149 displayText=""/>
150 <!-- /if -->
151
152 <target
[17596]153 target="Installing Tomcat"
[17281]154 diskRequirement="@component.size.tomcat@"
155 defaultValue="true"
156 displayText=""/>
157
[22325]158 <!-- start amp -->
159 <target
160 target="Installing AMP"
161 diskRequirement="@component.size.amp@"
162 defaultValue="true"
163 displayText=""/>
164 <!-- end amp -->
165
[19935]166 <!-- if windows -->
167 <target
168 target="Installing Start Menu Shortcuts"
169 diskRequirement="~10 KB"
170 defaultValue="true"
171 displayText=""/>
172 <!-- /if -->
173
[24216]174 <!-- NO FLAX END -->
175
176 <!-- FLAX START -->
177
178 <target
179 target="Installing ImageMagick"
180 diskRequirement="@component.size.imagemagick@"
181 defaultValue="true"
182 displayText=""
183 force="true"/>
184
185 <target
186 target="Installing Tomcat"
187 diskRequirement="@component.size.tomcat@"
188 defaultValue="true"
189 displayText=""
190 force="true"/>
191
192 <!-- if windows -->
193 <target
194 target="Installing Start Menu Shortcuts"
195 diskRequirement="~10 KB"
196 defaultValue="true"
197 displayText=""
198 force="true"/>
199 <!-- /if -->
[29337]200
[24216]201 <!-- FLAX END -->
[27379]202
[14982]203 </page>
204
[19935]205 <!-- page to setup tomcat -->
[26034]206 <!--<page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText="">
[15205]207 <text property="tomcat.server" defaultValue="localhost" displayText=""/>
[24602]208 <text property="tomcat.port" defaultValue="8383" displayText=""/>
209 <text property="tomcat.shutdown.port" defaultValue="8305" displayText=""/>
[26034]210 </page>-->
[25908]211
212 <!-- NO FLAX START -->
[24437]213
214 <!-- page to ask if we should enable admin pages -->
215 <page type="input" name="admin-pages" displayText="">
[29274]216 <comment name="admin3-expl"/>
217 <comment name="admin3-expl-2"/>
218 <comment name="admin3-expl-3"/>
219 <checkbox property="set.admin.pwd" displayText="" defaultValue="false"/>
[24437]220 </page>
[14982]221
[24437]222 <!-- only if they said yes above, set a password -->
[29285]223 <page type="input" name="admin-password" displayText="" ifProperty="(${set.admin.pwd}==true)" target="Configuring Administration Pages">
[24437]224 <comment name="admin-password-expl"/>
[29944]225 <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>
[24437]226 </page>
[25908]227 <!-- NO FLAX END -->
[24437]228
[19935]229 <!-- the final progress page -->
[17596]230 <page type="progress" name="progress" showTargets="true" displayText=""/>
[14982]231
232</installer>
Note: See TracBrowser for help on using the repository browser.