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 |
|
---|
5 | This is an example installer from which you can start a project
|
---|
6 | Edit this file to select the properties you want decided, at the end
|
---|
7 | of the installation screen the properties will be available in a file
|
---|
8 | in the current directory for your ant script
|
---|
9 |
|
---|
10 |
|
---|
11 | lookAndFeel="com.jgoodies.plaf.windows.ExtWindowsLookAndFeel" - not recommended since it is not linux compatible due to Micro$oft License restrictions
|
---|
12 |
|
---|
13 | lookAndFeel="net.sourceforge.mlf.metouia.MetouiaLookAndFeel" - good, and cross platform
|
---|
14 | lookAndFeel="com.jgoodies.plaf.plastic.Plastic3DLookAndFeel" - good, and cross platform
|
---|
15 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticXPLookAndFeel" - good, and cross platform
|
---|
16 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticLookAndFeel" - good but flat, and cross platform
|
---|
17 | lookAndFeel="jgoodies" - org.tp23.plaf.plastic.PlasticXPLookAndFeel
|
---|
18 | lookAndFeel="greymetal" - Monochome metal LAF
|
---|
19 | lookAndFeel="null" - do not call UIManager.setLookAndFeel
|
---|
20 | lookAndFeel="native" - call UIManager.getSystemLookAndFeelClassName
|
---|
21 |
|
---|
22 | -->
|
---|
23 |
|
---|
24 | <installer
|
---|
25 | ui="swing,text"
|
---|
26 | verbose="true"
|
---|
27 | debug="true"
|
---|
28 | lookAndFeel="greymetal"
|
---|
29 | antialiased="false"
|
---|
30 | name="Test Installer"
|
---|
31 | windowIcon="/resources/gkmain_inv.png"
|
---|
32 | defaultImageResource="/resources/antbar.png"
|
---|
33 | minJavaVersion="1.4"
|
---|
34 | finishButtonText="Build">
|
---|
35 |
|
---|
36 | <page
|
---|
37 | type="input"
|
---|
38 | name="intro"
|
---|
39 | displayText="Welcome to the new installer program"
|
---|
40 | imageResource="/resources/antbar.png">
|
---|
41 | <comment
|
---|
42 | displayText="This is a title comment"
|
---|
43 | title="true"/>
|
---|
44 | <comment
|
---|
45 | displayText="This is just a bold comment"
|
---|
46 | bold="true"/>
|
---|
47 | <comment
|
---|
48 | explanatoryText="This is a multi line comment with some random text that is just here to take up space and test out the overflowing text feature inside a comment."
|
---|
49 | displayText="This is just a comment"/>
|
---|
50 | </page>
|
---|
51 | <page
|
---|
52 | type="license"
|
---|
53 | name="license"
|
---|
54 | displayText="License conditions"
|
---|
55 | resource="/LICENSE-ant-install.txt"
|
---|
56 | usePaging="true"
|
---|
57 | imageResource="/resources/antbar.png">
|
---|
58 | </page>
|
---|
59 | <page
|
---|
60 | type="input"
|
---|
61 | name="properties"
|
---|
62 | displayText="Required install options"
|
---|
63 | overflow="true">
|
---|
64 | <text property="myProperty" defaultValue="blah blah" displayText="Enter a value"/>
|
---|
65 | <checkbox
|
---|
66 | property="isvalue"
|
---|
67 | explanatoryText="This is a multi line comment with some random text that is just here to take up space and test out the overflowing text feature inside a normal input type."
|
---|
68 | displayText="Do you want to do this"
|
---|
69 | defaultValue="true"
|
---|
70 | force="false"/>
|
---|
71 | <select
|
---|
72 | property="colour"
|
---|
73 | defaultValue="#FF0000"
|
---|
74 | displayText="Select your favorite colour">
|
---|
75 | <option text="Red" value="#FF0000"/>
|
---|
76 | <option text="Green" value="#00FF00"/>
|
---|
77 | <option text="Blue" value="#0000FF"/>
|
---|
78 | </select>
|
---|
79 | <directory
|
---|
80 | property="installDir"
|
---|
81 | defaultValue="/usr/local/demoapp"
|
---|
82 | defaultValueWin="${env.ProgramFiles}\demoapp"
|
---|
83 | displayText="Select an installation directory"
|
---|
84 | create="true"
|
---|
85 | checkExists="true"/>
|
---|
86 | <file
|
---|
87 | property="webxml"
|
---|
88 | defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
|
---|
89 | defaultValueWin="C:\tomcat\webapps\default\WEB-INF\web.xml"
|
---|
90 | displayText="Select the web.xml file"
|
---|
91 | checkExists="false"/>
|
---|
92 | <target
|
---|
93 | displayText="Core components"
|
---|
94 | target="default"
|
---|
95 | defaultValue="true"
|
---|
96 | force="true"/>
|
---|
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 | <password
|
---|
103 | property="unsafepassword"
|
---|
104 | displayText="Enter a password"
|
---|
105 | defaultValue="pa55word"
|
---|
106 | regex="[0-9a-zA-Z_]{8}"/>
|
---|
107 | <large-select
|
---|
108 | property="lang"
|
---|
109 | defaultValue="uk"
|
---|
110 | displayText="Select your favorite language">
|
---|
111 | <option text="Spanish" value="es"/>
|
---|
112 | <option text="Catalan" value="ca"/>
|
---|
113 | <option text="English" value="uk"/>
|
---|
114 | <option text="French" value="fr"/>
|
---|
115 | <option text="Japanese" value="jp"/>
|
---|
116 | <option text="Persian" value="pe"/>
|
---|
117 | <option text="Urdu" value="ur"/>
|
---|
118 | <option text="Flemish" value="fl"/>
|
---|
119 | <option text="German" value="de"/>
|
---|
120 | <option text="Greek" value="gk"/>
|
---|
121 | <option text="Turkish" value="tk"/>
|
---|
122 | <option text="Slav" value="sv"/>
|
---|
123 | <option text="Euskera" value="ek"/>
|
---|
124 | <option text="Welsh" value="we"/>
|
---|
125 | <option text="Jamaican patoi" value="ra"/>
|
---|
126 | <option text="Mockney" value="??"/>
|
---|
127 | <option text="Giberish" value="¿¿"/>
|
---|
128 | <option text="Love" value="lv"/>
|
---|
129 | <option text="Sign" value=":)"/>
|
---|
130 | <option text="Java" value="jv"/>
|
---|
131 | <option text="C++" value="++"/>
|
---|
132 | <option text="American" value="us"/>
|
---|
133 | </large-select>
|
---|
134 | <date property="date.property" dateFormat="dd-MM-yy mm:ss" defaultValue="TODAY" displayText="Enter a date"/>
|
---|
135 | <target-select
|
---|
136 | property="colourtarget"
|
---|
137 | defaultValue="tgt1"
|
---|
138 | displayText="Select a target"
|
---|
139 | explanatoryText="only one target available">
|
---|
140 | <option text="target-one" value="tgt1"/>
|
---|
141 | <option text="target-two" value="tgt2"/>
|
---|
142 | <option text="target-three" value="tgt3"/>
|
---|
143 | </target-select>
|
---|
144 | </page>
|
---|
145 | <page
|
---|
146 | type="progress"
|
---|
147 | name="progress"
|
---|
148 | displayText="Installation progress"
|
---|
149 | imageResource="/resources/antbar.png"
|
---|
150 | showTargets="true"
|
---|
151 | target="cleanuptarget">
|
---|
152 | </page>
|
---|
153 | </installer>
|
---|
154 |
|
---|
155 |
|
---|