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

Revision 30052, 6.8 KB (checked in by ak19, 4 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).

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.8.dtd">
3
4<installer
5            ui="swing,text"
6            verbose="true"
7            debug="false"
8            lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
9            name="Greenstone@version@ Installer"
10            windowIcon="/resources/icon.png"
11            defaultImageResource="/resources/header.png"
12            minJavaVersion="1.4">
13
14    <!-- select language page -->
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    -->
32    <page type="input" name="language-selector" displayText="">
33        <comment name="language-selector-explanation"/>
34        <large-select property="language" defaultValue="en" displayText="" useAsLocale="true">
35            <option value="en" text="English"/>
36            <option value="fr" text="Français (French)"/>
37            <option value="es" text="Español (Spanish)"/>
38            <option value="de" text="Deutsch (German)"/>
39            <option value="ru" text="русскОй язык (Russian)"/>
40            <option value="zh" text="äž­æ–‡ (Chinese)"/>
41            <option value="ar" text="Arabic"/>
42            <option value="kk" text="Қазақ (Kazakh)"/>
43        </large-select>
44    </page>
45
46    <!-- welcome page -->
47    <page type="input" name="intro" displayText="">
48        <comment name="welcome-greenstone3"/>
49    </page>
50
51    <!--  type="license" shows a license page to click through -->
52    <page type="license" name="license" resource="/LICENSE.txt"  displayText="" />
53
54    <!--  install destination page -->
55    <page type="input" name="destination" displayText="">
56
57        <!-- NO FLAX START -->
58
59        <!-- if linux|mac -->
60        <directory property="installDir"
61            defaultValue="/usr/local/Greenstone3,${env.HOME}/Greenstone3"
62            create="true"
63            displayText=""
64            flagFile="_uninst"
65            flagFileExistsProperty="ISInstallDetected"
66            />
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 -->
77
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
103    </page>
104
105    <!-- page to stop you going forward if an IS installation is detected -->
106    <page type="input" name="dontBudge" displayText="" ifProperty="(${ISInstallDetected}==true)" showNextButton="false">
107        <comment name="is-install-detected"/>
108    </page>
109
110    <!-- page to choose components -->
111    <page type="input" name="selector" displayText="">
112        <comment name="choose-components"/>
113
114        <target
115            target="Initialising"
116            diskRequirement="x"
117            defaultValue="true"
118            displayText="x"
119            force="true"
120            hidden="true"/>
121
122        <target
123            target="Installing Core System"
124            diskRequirement="@component.size.core@"
125            displayText=""
126            defaultValue="true"
127            force="true"/>
128
129        <!-- NO FLAX START -->
130
131        <target
132            target="Adjusting Permissions"
133            diskRequirement="x"
134            defaultValue="true"
135            displayText="x"
136            hidden="true"/>
137       
138        <target
139            target="Installing ImageMagick"
140            diskRequirement="@component.size.imagemagick@"
141            defaultValue="true"
142            displayText=""/>
143
144        <!-- if windows|mac -->
145        <target
146            target="Installing Ghostscript"
147            diskRequirement="@component.size.ghostscript@"
148            defaultValue="true"
149            displayText=""/>
150        <!-- /if -->
151
152        <target
153            target="Installing Tomcat"
154            diskRequirement="@component.size.tomcat@"
155            defaultValue="true"
156            displayText=""/>
157
158        <!-- start amp -->
159        <target
160           target="Installing AMP"
161           diskRequirement="@component.size.amp@"
162           defaultValue="true"
163           displayText=""/>
164        <!-- end amp -->
165
166        <!-- if windows -->
167        <target
168            target="Installing Start Menu Shortcuts"
169            diskRequirement="~10 KB"
170            defaultValue="true"
171            displayText=""/>
172        <!-- /if -->
173
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 -->
200       
201        <!-- FLAX END -->
202
203    </page>
204
205    <!-- page to setup tomcat -->
206    <!--<page type="input" name="tomcat-config" ifProperty="(${Installing Tomcat}==true)" displayText="">
207        <text property="tomcat.server" defaultValue="localhost" displayText=""/>
208        <text property="tomcat.port" defaultValue="8383" displayText=""/>
209        <text property="tomcat.shutdown.port" defaultValue="8305" displayText=""/>
210    </page>-->
211
212  <!-- NO FLAX START -->
213   
214    <!-- page to ask if we should enable admin pages -->
215    <page type="input" name="admin-pages" displayText="">
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"/>
220    </page>
221
222    <!-- only if they said yes above, set a password -->
223    <page type="input" name="admin-password" displayText="" ifProperty="(${set.admin.pwd}==true)" target="Configuring Administration Pages">
224        <comment name="admin-password-expl"/>
225        <validated property="admin.password" defaultValue="" displayText="" regex="^.{3,20}$"/>
226    </page>
227  <!-- NO FLAX END -->
228
229    <!-- the final progress page -->
230    <page type="progress" name="progress" showTargets="true" displayText=""/>
231
232</installer>
Note: See TracBrowser for help on using the browser.