source: other-projects/trunk/realistic-books/packages/AntInstaller/examples/buildtypes/script-auto/installer/antinstall-config.xml@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 7.8 KB
Line 
1<?xml version="1.0"?>
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,swing-auto,text-auto"
6 verbose="true"
7 debug="true"
8 lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
9 antialiased="true"
10 name="Test Installer"
11 windowIcon="/resources/gkmain_inv.png"
12 defaultImageResource="/resources/antbar.png"
13 minJavaVersion="1.4"
14 finishButtonText="Build"
15 loadDefaults="prompt"
16 version="1.0">
17
18 <page
19 type="input"
20 name="intro.1"
21 displayText="Welcome to the new installer program"
22 imageResource="/resources/antbar.png"
23 overflow="true">
24 <comment
25 displayText="This is a title comment"
26 title="true"/>
27 <comment
28 displayText="This is just a bold comment"
29 bold="true"/>
30 <comment
31 explanatoryText="Property references (e.g. OS=${java.os.name}) will be expanded in explanatoryText and display text"
32 displayText="Username ${java.user.name}"/>
33 <comment
34 explanatoryText="This is flowing explanatory text with references expanded (e.g. OS=${java.os.name}) and no space allocated in swing for the empty comment line. The bold flag will NOT be used since it relates to the displayText which is null"
35 bold="true"/>
36 <comment
37 displayText="This is just a bold comment"
38 bold="true"/>
39 </page>
40 <page
41 type="splash"
42 name="splash.2"
43 displayText="Example Splash Page"
44 imageResource="/resources/antbar.png"
45 splashResource="/resources/example-ai-splash.png"
46 altText="example text splash"/>
47
48 <page
49 type="license"
50 name="license.3"
51 displayText="License conditions"
52 resource="/resources/LICENSE-ant-install.txt"
53 usePaging="true"
54 imageResource="/resources/antbar.png">
55 </page>
56 <page
57 type="input"
58 name="properties.4"
59 displayText="Required install options">
60 <text property="myProperty" defaultValue="blah blah" displayText="Enter a value"/>
61 <checkbox
62 property="isvalue"
63 displayText="Do you want to do this"
64 defaultValue="true"
65 force="false"/>
66 <select
67 property="colour"
68 defaultValue="#FF0000"
69 displayText="Select your favorite colour">
70 <option text="Red" value="#FF0000"/>
71 <option text="Green" value="#00FF00"/>
72 <option text="Blue" value="#0000FF"/>
73 </select>
74 <directory
75 property="installDir"
76 defaultValue="/usr/local/demoapp"
77 defaultValueWin="${env.ProgramFiles}\demoapp"
78 displayText="Select an installation directory"
79 create="true"
80 checkExists="true"/>
81 <directory
82 property="dataDir"
83 defaultValue=""
84 defaultValueWin=""
85 displayText="Select a directory(if you want)"
86 create="false"
87 checkExists="false"/>
88 <file
89 property="webxml"
90 defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
91 defaultValueWin="C:\tomcat\webapps\default\WEB-INF\web.xml"
92 displayText="Select the web.xml file"
93 checkExists="false"/>
94 </page>
95 <page
96 type="text"
97 name="intro.4a"
98 displayText="HTML page"
99 htmlResource="/resources/text.html"
100 textResource="/resources/text.txt"
101 overflow="true" />
102 <page
103 type="input"
104 name="selector.5"
105 displayText="Select components to install"
106 imageResource="/resources/antbar.png">
107 <comment
108 displayText="Choose the components you want to install"
109 bold="true"/>
110 <target
111 displayText="Core components"
112 target="core"
113 defaultValue="true"
114 force="true"/>
115 <target
116 displayText="Source code"
117 target="tgsrc"
118 defaultValue="true"
119 force="false"/>
120 <validated
121 property="validatedtext"
122 displayText="Validated Text Input"
123 defaultValue="23/10/2004"
124 regex="^[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]$"/>
125 <text
126 property="unvalidatedtext"
127 displayText="Unvalidated User Name"
128 defaultValue="${java.user.name}"/>
129 <password
130 property="unsafepassword"
131 displayText="Enter a password"
132 defaultValue="pa55word"
133 regex="[0-9a-zA-Z_]{8}"/>
134 <large-select
135 property="lang"
136 defaultValue="uk"
137 displayText="Select your favorite language">
138 <option text="Spanish" value="es"/>
139 <option text="Catalan" value="ca"/>
140 <option text="English" value="uk"/>
141 <option text="French" value="fr"/>
142 <option text="Japanese" value="jp"/>
143 <option text="Persian" value="pe"/>
144 <option text="Urdu" value="ur"/>
145 <option text="Flemish" value="fl"/>
146 <option text="German" value="de"/>
147 <option text="Greek" value="gk"/>
148 <option text="Turkish" value="tk"/>
149 <option text="Slav" value="sv"/>
150 <option text="Euskera" value="ek"/>
151 <option text="Welsh" value="we"/>
152 <option text="Jamaican patoi" value="ra"/>
153 <option text="Mockney" value="??"/>
154 <option text="Giberish" value="¿¿"/>
155 <option text="Love" value="lv"/>
156 <option text="Sign" value=":)"/>
157 <option text="Java" value="jv"/>
158 <option text="C++" value="++"/>
159 <option text="American" value="us"/>
160 </large-select>
161 <target
162 displayText="OS Specific target"
163 osSpecific="true"
164 target="myOsSpecific"
165 defaultValue="true"
166 force="false"/>
167 </page>
168 <page
169 ifProperty="${lang}=lv"
170 type="input"
171 name="Language of Love.6"
172 displayText="Language of Love">
173 <comment
174 displayText="Aaaarrr, how sweet"
175 bold="true"/>
176 </page>
177 <page
178 ifProperty="${lang}=us"
179 type="input"
180 name="American.7"
181 displayText="Hey Yankiee">
182 <comment
183 displayText="It totaliser and initialise, with Ss you know, but never mind"
184 bold="true"/>
185 </page>
186 <page
187 ifTarget="tgsrc"
188 type="input"
189 name="properties.8"
190 displayText="Required if Source code selected">
191 <text property="myProperty2" defaultValue="tiddly poop" displayText="Enter a value"/>
192 <select
193 property="colour2"
194 defaultValue="#FF0000"
195 displayText="colour2"
196 explanatoryText="This field can be used on any input field to render further descriptive text
197 This field can be used on any input field to render further descriptive text">
198 <option text="Red" value="#FF0000"/>
199 <option text="Green" value="#00FF00"/>
200 <option text="Blue" value="#0000FF"/>
201 </select>
202 <text property="myProperty3" defaultValue="blah blah" displayText="Enter a value"/>
203 <date property="date.property" dateFormat="dd-MM-yy mm:ss" defaultValue="TODAY" displayText="Enter a date"/>
204 <!-- example disabled since you might not have tomcat installed -->
205 <!--app-root
206 property="tomcat.root"
207 defaultValue="/var"
208 displayText="Select the tomcat root"
209 checkFile1="conf/tomcat-users.xml"
210 checkFile2="conf/server.xml"
211 checkDir1="webapps"
212 checkDir2="conf">
213 </app-root-->
214 </page>
215 <page
216 type="input"
217 name="contrib.9"
218 displayText="Contributions">
219 <target-select
220 property="colourtarget"
221 defaultValue="tgt1"
222 displayText="Select a target"
223 explanatoryText="only one target available">
224 <option text="target-one" value="tgt1"/>
225 <option text="target-two" value="tgt2"/>
226 <option text="target-three" value="tgt3"/>
227 </target-select>
228 </page>
229 <page
230 type="input"
231 name="envcond.10"
232 displayText="Environment Conditional"
233 imageResource="/resources/makewavesdawn.png"
234 ifProperty="${env.DISPLAY}=:0.0">
235 <comment
236 displayText="This page only shows if DISPLAY=:0.0"
237 bold="false"/>
238 </page>
239 <page
240 type="input"
241 name="propcond.11"
242 displayText="Blue Conditional"
243 ifProperty="${colourtarget}=#0000FF">
244 <comment
245 displayText="original syntax"
246 bold="false"/>
247 <comment
248 displayText="colourtarget is Blue"
249 bold="false"/>
250 </page>
251 <page
252 type="input"
253 name="propcond.12"
254 displayText="Red Conditional"
255 ifProperty="${colourtarget}=#FF0000">
256 <comment
257 displayText="preferred syntax"
258 bold="false"/>
259 <comment
260 displayText="This page only shows if colourtarget is RED"
261 bold="false"/>
262 </page>
263 <page
264 type="progress"
265 name="progress.13"
266 displayText="Installation progress"
267 showTargets="true"
268 target="cleanuptarget">
269 </page>
270</installer>
271
272
Note: See TracBrowser for help on using the repository browser.