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 |
|
---|
15 | lookAndFeel="com.jgoodies.plaf.plastic.Plastic3DLookAndFeel" - good, and cross platform
|
---|
16 |
|
---|
17 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticXPLookAndFeel" - good, and cross platform
|
---|
18 |
|
---|
19 | lookAndFeel="com.jgoodies.plaf.plastic.PlasticLookAndFeel" - good but flat, and cross platform
|
---|
20 | -->
|
---|
21 |
|
---|
22 | <!--
|
---|
23 |
|
---|
24 | defaultImageResource,windowIcon,resource and imageResource load from the classpath
|
---|
25 | the installer script should put the locations of these resources on the classpath
|
---|
26 |
|
---|
27 | -->
|
---|
28 | <installer
|
---|
29 | ui="swing,text"
|
---|
30 | verbose="true"
|
---|
31 | debug="true"
|
---|
32 | lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
|
---|
33 | name="Demo Installer"
|
---|
34 | windowIcon="/resources/gkmain_inv.png"
|
---|
35 | defaultImageResource="/resources/greens.png"
|
---|
36 | minJavaVersion="1.4">
|
---|
37 | <!-- each page element represents a page of the installer -->
|
---|
38 | <page
|
---|
39 | type="input"
|
---|
40 | name="intro"
|
---|
41 | displayText="Welcome to the example installer program"
|
---|
42 | imageResource="/resources/greens.png">
|
---|
43 | <comment
|
---|
44 | displayText="This is a demo install"
|
---|
45 | title="true"/>
|
---|
46 | <comment
|
---|
47 | displayText="The application installed is yer typical Hello World"
|
---|
48 | bold="true"/>
|
---|
49 | <comment
|
---|
50 | displayText="There is not much more to be said really."/>
|
---|
51 | <select
|
---|
52 | property="test-1494105-colour"
|
---|
53 | defaultValue="#FF0000"
|
---|
54 | displayText="Choose the option"
|
---|
55 | explanatoryText="This field can be used on any input field to render further descriptive text
|
---|
56 | This field can be used on any input field to render further descriptive text">
|
---|
57 | <option text="Red" value="#FF0000"/>
|
---|
58 | <option text="Green" value="#00FF00"/>
|
---|
59 | <option text="Blue" value="#0000FF"/>
|
---|
60 | </select>
|
---|
61 | </page>
|
---|
62 | <page
|
---|
63 | type="input"
|
---|
64 | name="test-1494105"
|
---|
65 | displayText="test case for bug 1494105"
|
---|
66 | ifProperty="${test-1494105-colour}==#FF0000">
|
---|
67 | <checkbox
|
---|
68 | property="truefalseprop-fail"
|
---|
69 | displayText="Make a boolean decision"
|
---|
70 | defaultValue="false"
|
---|
71 | force="false"/>
|
---|
72 | </page>
|
---|
73 | <!-- type="license" shows a license page to click through -->
|
---|
74 | <page
|
---|
75 | type="license"
|
---|
76 | name="license"
|
---|
77 | displayText="License conditions"
|
---|
78 | resource="/resources/GPL.txt"
|
---|
79 | imageResource="/resources/rockstiles.png">
|
---|
80 | </page>
|
---|
81 | <!-- type="input" shows a list of editable options for the installer -->
|
---|
82 | <page
|
---|
83 | type="input"
|
---|
84 | name="properties"
|
---|
85 | displayText="Required install options">
|
---|
86 | <directory
|
---|
87 | property="installDir"
|
---|
88 | defaultValue="/usr/local/demoapp"
|
---|
89 | defaultValueWin="${env.ProgramFiles}\demoapp"
|
---|
90 | displayText="Select an installation directory"
|
---|
91 | create="true"/>
|
---|
92 | <directory
|
---|
93 | property="otherInstallDir"
|
---|
94 | defaultValue="/"
|
---|
95 | defaultValueWin="${env.ProgramFiles}\demoapp_files"
|
---|
96 | displayText="Select a file storage directory"
|
---|
97 | create="false"/>
|
---|
98 | </page>
|
---|
99 | <page
|
---|
100 | type="input"
|
---|
101 | name="selector"
|
---|
102 | displayText="Components to install">
|
---|
103 | <comment
|
---|
104 | displayText="Choose the components you want to install"
|
---|
105 | bold="true"/>
|
---|
106 | <target
|
---|
107 | displayText="Core components"
|
---|
108 | target="default"
|
---|
109 | defaultValue="true"
|
---|
110 | force="true"/>
|
---|
111 | <target
|
---|
112 | displayText="Source code"
|
---|
113 | target="tgsrc"
|
---|
114 | defaultValue="false"/>
|
---|
115 | <target
|
---|
116 | displayText="Documentation"
|
---|
117 | target="tgdoc"
|
---|
118 | defaultValue="true"/>
|
---|
119 | </page>
|
---|
120 | <!-- These are some other input types -->
|
---|
121 | <page
|
---|
122 | type="input"
|
---|
123 | name="other-input-types"
|
---|
124 | displayText="Pointless install options">
|
---|
125 | <text
|
---|
126 | property="myProperty"
|
---|
127 | defaultValue="blah blah"
|
---|
128 | displayText="Enter any text"/>
|
---|
129 | <checkbox
|
---|
130 | property="truefalseprop"
|
---|
131 | displayText="Make a boolean decision"
|
---|
132 | defaultValue="true"
|
---|
133 | force="false"/>
|
---|
134 | <select
|
---|
135 | property="colour"
|
---|
136 | defaultValue="#FF0000"
|
---|
137 | displayText="Choose the option"
|
---|
138 | explanatoryText="This field can be used on any input field to render further descriptive text
|
---|
139 | This field can be used on any input field to render further descriptive text">
|
---|
140 | <option text="Red" value="#FF0000"/>
|
---|
141 | <option text="Green" value="#00FF00"/>
|
---|
142 | <option text="Blue" value="#0000FF"/>
|
---|
143 | </select>
|
---|
144 | <file
|
---|
145 | property="selectedfile"
|
---|
146 | defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
|
---|
147 | defaultValueWin="C:\autoexec.bat"
|
---|
148 | displayText="Select a file"
|
---|
149 | checkExists="false"/>
|
---|
150 | </page>
|
---|
151 | <!-- page type="progress" shows a progress page with the install button it is a requirement for the final page-->
|
---|
152 | <page type="progress" name="progress" displayText="Installation progress" showTargets="true"/>
|
---|
153 | </installer>
|
---|
154 |
|
---|
155 |
|
---|