source: release-kits/lirk3/bin/ant-installer/examples/buildtypes/script-lang/installer/antinstall-config.xml@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

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