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