Project

General

Profile

Download (17.2 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / sitools-install-izpack / install.xml @ master

1
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
2
<!-- ===================================
3
==  Copyright 2010-2014 CNES - CENTRE NATIONAL d'ETUDES SPATIALES
4
==  
5
==  This file is part of SITools2.
6
==  
7
==  SITools2 is free software: you can redistribute it and/or modify
8
==  it under the terms of the GNU General Public License as published by
9
==  the Free Software Foundation, either version 3 of the License, or
10
==  (at your option) any later version.
11
==  
12
==  SITools2 is distributed in the hope that it will be useful,
13
==  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
==  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
==  GNU General Public License for more details.
16
==  
17
==  You should have received a copy of the GNU General Public License
18
==  along with SITools2.  If not, see <http://www.gnu.org/licenses/>.
19
==================================== -->
20
<installation version="1.0">
21
        <!-- Includes some jars -->
22
        <!-- Contains the files for the database validator -->
23
        <jar src="dist/sitools-install-izpack.jar" />
24
        <!-- JDBC database drivers -->
25
        <jar src="lib/postgresql-8.3-603.jdbc3.jar" />
26
        <jar src="lib/mysql-connector-java-5.1.7-bin.jar" />
27
        <jar src="lib/hsqldb.jar" />
28
        <info>
29
                <appname>Sitools2</appname>
30
                <appversion>3.0</appversion>
31
                <authors>
32
                        <author email="" name="CNES" />
33
                        <author email="" name="Akka Technologies" />
34
                </authors>
35
                <uninstaller name="Uninstaller.jar" write="yes" />
36
                <javaversion>1.6</javaversion>
37
                <requiresjdk>no</requiresjdk>
38
                <writeinstallationinformation>yes</writeinstallationinformation>
39
                <summarylogfilepath>$INSTALL_PATH/installLog</summarylogfilepath>
40
        </info>
41
        
42
        <listeners>
43
                <listener installer="InstallDatabaseAction" jar ="dist/sitools-install-izpack.jar"/>
44
        </listeners>
45

    
46
        <guiprefs width="900" height="700" resizable="yes">
47
                <modifier key="useHeadingPanel" value="yes" />
48
                <modifier key="headingImageOnLeft" value="yes" />
49
                <modifier key="headingLineCount" value="1" />
50
                <modifier key="headingFontSize" value="1.5" />
51
                <modifier key="headingBackgroundColor" value="0x00ffffff" />
52
                <modifier key="headingPanelCounter" value="text" />
53
                <modifier key="headingPanelCounterPos" value="inHeading" />
54
                <modifier key="langDisplayType" value="native" />
55
        </guiprefs>
56

    
57
        <locale>
58
                <langpack iso3="eng" />
59
                <langpack iso3="fra" />
60
        </locale>
61
        <resources>
62
                <res id="LicencePanel.licence_eng" parse="yes"
63
                        src="../fr.cnes.sitools.core/conf/licences/gpl-3.0.txt" />
64
                <res id="LicencePanel.licence_fra" parse="yes"
65
                        src="../fr.cnes.sitools.core/conf/licences/gpl-3.0.txt" />
66
                <res id="userInputSpec.xml" src="install_res/install_userInputSpec.xml" />
67
                <!-- Ant action file -->
68
                <!-- <res id="AntActionsSpec.xml" src="AntActionsSpec.xml" /> -->
69
                <res id="Heading.image" src="res/img/logo_01_petiteTaille.png" />
70
                <res id="installer.langsel.img" src="res/img/logo_02_tailleMoyenne.png" />
71
                <!-- for internationnalization -->
72
                <res id="userInputLang.xml_eng" src="install_res/userInputLang.xml_eng" />
73
                <res id="userInputLang.xml_fra" src="install_res/userInputLang.xml_fra" />
74
                <res id="CustomLangpack.xml_eng" src="install_res/CustomLangpack_eng.xml" />
75
                <res id="CustomLangpack.xml_fra" src="install_res/CustomLangpack_fra.xml" />
76
<!--                 <res id="HTMLInfoPanel.finishInstruction" src="install_res/finishInstruction.html" /> -->
77
        </resources>
78

    
79
        <conditions>
80
                <condition type="variable" id="postgresqlSelected">
81
                        <name>input.database.driver</name>
82
                        <value>postgresql</value>
83
                </condition>
84
                <condition type="variable" id="mysqlSelected">
85
                        <name>input.database.driver</name>
86
                        <value>mysql</value>
87
                </condition>
88
                <condition type="variable" id="hsqldbSelected">
89
                        <name>input.database.driver</name>
90
                        <value>hsqldb</value>
91
                </condition>
92
                <condition type="variable" id="remoteDatabase">
93
                        <name>input.database.dbType</name>
94
                        <value>external</value>
95
                </condition>
96
                <condition type="variable" id="embeddedDatabase">
97
                        <name>input.database.dbType</name>
98
                        <value>embedded</value>
99
                </condition>
100
        </conditions>
101

    
102
        <dynamicvariables>
103
                <!-- mysql -->
104
                <variable name="db_url"
105
                        value="jdbc:${input.database.driver}://${input.database.hostname}:${input.database.port}/${input.database.name}"
106
                        condition="mysqlSelected" />
107
                <variable name="db_driver" value="org.gjt.mm.mysql.Driver"
108
                        condition="mysqlSelected" />
109
                <!-- postgresql -->
110
                <variable name="db_url"
111
                        value="jdbc:${input.database.driver}://${input.database.hostname}:${input.database.port}/${input.database.name}"
112
                        condition="postgresqlSelected" />
113
                <variable name="db_driver" value="org.postgresql.Driver"
114
                        condition="postgresqlSelected" />
115
                <!-- HSQLDB -->
116
                <variable name="db_url"
117
                        value="jdbc:${input.database.driver}:file://${input.database.filepath}/${input.database.name}"
118
                        condition="hsqldbSelected" />
119
                <variable name="db_driver" value="org.hsqldb.jdbcDriver"
120
                        condition="hsqldbSelected" />
121
                <variable name="smtpUrl" value="${smtpServer}:${smtpPort}"/>
122
        </dynamicvariables>
123

    
124
        <panels>
125
                <panel classname="CheckedHelloPanel" />
126
                <panel classname="LicencePanel" />
127
                <panel classname="TreePacksPanel" />
128
                <panel classname="TargetPanel" />
129
                <panel classname="UserInputPanel" id="UserInputPanel.0" />
130
                <panel classname="UserInputPanel" id="UserInputPanel.1"/>
131
                <panel classname="UserInputPanel" id="UserInputPanel.2">
132
                        <!-- Database validator -->
133
                        <validator classname="fr.cnes.sitools.izpack.validator.JDBCConnectionValidator" />
134
                </panel>
135
                <panel classname="SummaryPanel" />
136
                <panel classname="InstallPanel" />
137
                <!-- Panel to create databases -->
138
                <!--<panel classname="DatabasePanel" />-->
139
                <!-- <panel classname="HTMLInfoPanel" id="finishInstruction"/> --> 
140
                <panel classname="FinishPanel" />
141
        </panels>
142
        <variables>
143
                <variable name="workspacePath" value="workspace" />
144
                <variable name="fr.cnes.sitools.corePath" value="workspace/fr.cnes.sitools.core" />
145
                <variable name="fr.cnes.sitools.extensions" value="workspace/fr.cnes.sitools.extensions" />
146
                <variable name="libraries" value="workspace/libraries" />
147
                <variable name="resPath" value="res" />
148
                <variable name="scriptPath" value="res/script" />
149
                <variable name="extPath" value="res/ext" />
150
                <variable name="propertiesPath" value="res/properties" />
151
                <variable name="imgPath" value="res/img" />
152
                <variable name="dbPath" value="res/db" />
153
                <variable name="update-classpathPath" value="workspace/sitools-update-classpath" />
154
                
155
        </variables>
156

    
157
        <packs>
158
                <!-- SERVER PACKS -->
159
                <pack name="Server" preselected="yes" required="yes">
160
                        <description>Server files (Sitools, lib, cots, scripts, config, data,
161
                                database)</description>
162
                </pack>
163
                <!-- SITOOLS, contains the sitools Jar -->
164
                <pack name="Sitools" preselected="yes" required="yes" parent="Server">
165
                        <description>This package contains the core of the server
166
                        </description>
167
                        <file override="update"
168
                                src="../fr.cnes.sitools.core/dist/lib/fr.cnes.sitools.core.jar"
169
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
170
                        <fileset override="update" dir="res/logs"
171
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/logs" />
172
                </pack>
173
                <!-- LIB, contains all the librairies and the custom restlet extensions -->
174
                <pack name="libraries" preselected="yes" required="yes" parent="Server">
175
                        <description>Libraries (org.apache.solr_3.6.1, org.apache.xalan_2.7.1,
176
                                org.gjt.mm.mysql_5.1.7,
177
                                org.postgresql_8.3, org.xmlpull_3.1,
178
                                org.restlet.ext.solr_3.1.0, org.restlet.patched, org.restlet.ext.wadl_2.0.1)
179
                        </description>
180
                        <fileset override="update" dir="../libraries" targetdir="$INSTALL_PATH/$libraries"
181
                                includes="**/*.jar" />
182
                        <fileset override="update" dir="../org.restlet.ext.solr/" targetdir="$INSTALL_PATH/$workspacePath/org.restlet.ext.solr"
183
                                includes="**/*.jar" />
184
                        <file override="update"
185
                                src="../org.restlet.patched/org.restlet.patched_1.0.4.jar"
186
                                targetdir="$INSTALL_PATH/workspace/org.restlet.patched" />
187
                        <file override="update"
188
                                src="../org.restlet.ext.wadl/org.restlet.ext.wadl_2.0.1.jar"
189
                                targetdir="$INSTALL_PATH/workspace/org.restlet.ext.wadl" />
190
                </pack>
191
                <!-- COTS, contains all the other librairies needed -->
192
                <pack name="cots-restlet" preselected="yes" required="yes"
193
                        parent="Server">
194
                        <description>Cots-restlet</description>
195
                        <fileset override="update" dir="../../cots/restlet-2.0.5-patched"
196
                                targetdir="$INSTALL_PATH/cots/restlet-2.0.5-patched" includes="**/*.jar" />
197
                </pack>
198
                <!-- SCRIPTS, contains the starting scripts -->
199
                <pack name="scripts" preselected="yes" required="yes" parent="Server">
200
                        <description>Scripts</description>
201
                        <!-- UNIX SCRIPT -->
202
                        <file override="true" src="$scriptPath/sitools"
203
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
204
                        <file override="true" src="$scriptPath/startSitools.sh"
205
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
206
                        <file override="true" src="$scriptPath/sitools.sh" targetdir="$INSTALL_PATH" />
207
                        <!-- WINDOWS SCRIPT -->
208
                        <file override="true" src="$scriptPath/startSitools.bat"
209
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
210
                        <file override="true" src="$scriptPath/sitools.bat" targetdir="$INSTALL_PATH" />
211
                        <!-- JAR UTILITIES -->
212
                        <file override="true" src="../../$update-classpathPath/sitools-update-classpath.jar"
213
                                targetdir="$INSTALL_PATH/$update-classpathPath" />
214
                        <fileset override="true" dir="res/ext"
215
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/ext" />
216
                        <!-- Makes those scripts parsable -->
217
                        <parsable encoding="UTF-8"
218
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/startSitools.sh"
219
                                type="shell" />
220
                        <parsable encoding="UTF-8"
221
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/sitools" type="shell" />
222
                        <parsable encoding="UTF-8" targetfile="$INSTALL_PATH/sitools.sh"
223
                                type="ant" />
224
                        <parsable encoding="UTF-8" targetfile="$INSTALL_PATH/sitools.bat"
225
                                type="ant" />
226
                        <parsable encoding="UTF-8"
227
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/startSitools.bat"
228
                                type="shell" />
229
                        <!-- Makes those scripts executable -->
230
                        <executable targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/startSitools.sh"
231
                                stage="never" />
232
                        <executable targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/sitools"
233
                                stage="never" />
234
                        <executable targetfile="$INSTALL_PATH/sitools.sh" stage="never" />
235
                        <executable
236
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/startSitools.bat"
237
                                stage="never" />
238
                        <executable targetfile="$INSTALL_PATH/sitools.bat" stage="never" />
239
                </pack>
240
                <!-- CONFIG, contains the config files -->
241
                <pack name="config" preselected="yes" required="yes" parent="Server">
242
                        <description>Config</description>
243
                        <file override="true" src="$propertiesPath/sitools.properties"
244
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
245
                        <file override="true"
246
                                src="../fr.cnes.sitools.core/conf/properties/sitools-logging.properties"
247
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/conf/properties" />
248
                        <fileset override="true" dir="../fr.cnes.sitools.core/conf/resources"
249
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/conf/resources" />
250
                        <fileset override="true" dir="../fr.cnes.sitools.core/conf/licences"
251
                                targetdir="$INSTALL_PATH/licences" />
252
                        <parsable encoding="UTF-8"
253
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/sitools.properties"
254
                                type="javaprop" />
255
                        <file override="true" src="../fr.cnes.sitools.core/conf/properties/log4j.properties"
256
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath" />
257
                </pack>
258
                <!-- DATA -->
259
                <pack name="data" preselected="yes" required="yes" parent="Server">
260
                        <description>Init data</description>
261
                        <fileset override="update" dir="../../data" targetdir="$INSTALL_PATH/data"/>
262
                        <!-- ADD A USERSTORAGE FOR USER ADMIN TODO remove it in future version -->
263
                        <file override="true" src="$resPath/data/userstorage/int@0.xml"
264
                                targetdir="$INSTALL_PATH/data/userstorage" />
265
                        <!-- ADD A USERSTORAGE to store public desktop preferences -->
266
                        <file override="true" src="$resPath/data/userstorage/int@1.xml"
267
                                targetdir="$INSTALL_PATH/data/userstorage" />
268
                        <fileset override="update" dir="res/data/storage" targetdir="$INSTALL_PATH/data/storage" />
269
                        <fileset override="update" dir="res/data/freemarker" targetdir="$INSTALL_PATH/data/freemarker" />
270
                        <parsable encoding="UTF-8"
271
                                targetfile="$INSTALL_PATH/data/userstorage/int@0.xml" type="xml" />
272
                        <parsable encoding="UTF-8"
273
                                targetfile="$INSTALL_PATH/data/userstorage/int@1.xml" type="xml" />
274
                </pack>
275
                <!-- DATABASE -->
276
                <pack name="database" preselected="yes" required="yes" parent="Server">
277
                        <description>Database creation scripts</description>
278
                        <fileset override="true" dir="../../database" targetdir="$INSTALL_PATH/database" excludes="**/pgsql_sitools.sql">
279
                                <exclude name="**/pgsql_sitools.sql"/>
280
                                <exclude name="**/SITOOLS_CREATE_SCHEMA.sql"/>
281
                                <exclude name="**/SITOOLS_CREATE_TABLES.sql"/>
282
                                <exclude name="**/SITOOLS_INSERT_DATA.sql"/>
283
                        </fileset>
284
                        <!-- POSTGRESQL -->
285
                        <file override="true" src="$resPath/database/PGSQL/pgsql_sitools.sql"
286
                                targetdir="$INSTALL_PATH/database/PGSQL" />
287
                        <parsable encoding="UTF-8"
288
                                targetfile="$INSTALL_PATH/database/PGSQL/pgsql_sitools.sql" type="ant" />                        
289

    
290
                        <!-- HSQLDB -->
291
                        <file override="true" src="$resPath/database/HSQLDB/SITOOLS_CREATE_SCHEMA.sql"
292
                                targetdir="$INSTALL_PATH/database/HSQLDB" />
293
                        <parsable encoding="UTF-8"
294
                                targetfile="$INSTALL_PATH/database/HSQLDB/SITOOLS_CREATE_SCHEMA.sql" type="ant" />                        
295

    
296
                        <file override="true" src="$resPath/database/HSQLDB/SITOOLS_CREATE_TABLES.sql"
297
                                targetdir="$INSTALL_PATH/database/HSQLDB" />
298
                        <parsable encoding="UTF-8"
299
                                targetfile="$INSTALL_PATH/database/HSQLDB/SITOOLS_CREATE_TABLES.sql" type="ant" />                        
300

    
301
                        <file override="true" src="$resPath/database/HSQLDB/SITOOLS_INSERT_DATA.sql"
302
                                targetdir="$INSTALL_PATH/database/HSQLDB" />
303
                        <parsable encoding="UTF-8"
304
                                targetfile="$INSTALL_PATH/database/HSQLDB/SITOOLS_INSERT_DATA.sql" type="ant" />
305
                                                                                
306
                </pack>
307
                <!-- END OF SERVER PACKS SERVER EXTENSIONS -->
308
                <pack name="Server extensions" preselected="yes" required="no">
309
                        <description>Server extensions</description>
310
                </pack>
311
                <!-- SERVER EXTENSIONS -->
312
                <pack name="extensions" preselected="yes" required="no"
313
                        parent="Server extensions">
314
                        <description>Extensions for Converters, Filters,
315
                                SVAs and Applications
316
                        </description>
317
                        <file override="update"
318
                                src="../fr.cnes.sitools.extensions/dist/fr.cnes.sitools.extensions.jar"
319
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/ext" />
320
                </pack>
321
                <!-- END OF SERVER EXTENTIONS CLIENT PACKS -->
322
                <pack name="Client" preselected="yes" required="no">
323
                        <description>Client files (ext-js, public, client-admin, client-user)
324
                        </description>
325
                </pack>
326
                <!-- EXT JS -->
327
                <pack name="client-cots" preselected="yes" required="no" parent="Client">
328
                        <description>Ext-js librairy, Openlayers, GeoExt</description>
329
                        <fileset override="update" dir="../../cots/extjs4" targetdir="$INSTALL_PATH/cots/extjs4"
330
                                excludes="**/*.zip" />
331
                        <fileset override="update" dir="../../cots/geoext2-2.0.2" targetdir="$INSTALL_PATH/cots/geoext2-2.0.2"
332
                                excludes="**/*.zip" />
333
                        <fileset override="update" dir="../../cots/OpenLayers-2.13.1" targetdir="$INSTALL_PATH/cots/OpenLayers-2.13.1"
334
                                excludes="**/*.zip" />
335
                </pack>
336
                <!-- PUBLIC -->
337
                <pack name="public" preselected="yes" required="no" parent="Client">
338
                        <description>Public</description>
339
                        <fileset override="update" dir="../client-public-3.0"
340
                                targetdir="$INSTALL_PATH/$workspacePath/client-public-3.0">
341
                                <exclude name=".*" />
342
                                <exclude name=".settings/" />
343
                                <exclude name="node_modules/" />
344
                                <exclude name="build/" />
345
                <exclude name=".sencha/" />
346
                        </fileset>
347
                        <depends packname="client-cots" />
348
                </pack>
349
                <!-- CLIENT ADMIN -->
350
                <pack name="client-admin" preselected="yes" required="no" parent="Client">
351
                        <description>Client-admin</description>
352
                        <fileset override="update" dir="../client-admin"
353
                                targetdir="$INSTALL_PATH/$workspacePath/client-admin">
354
                                <exclude name=".*" />
355
                                <exclude name=".settings/" />
356
                                <exclude name="node_modules/" />
357
                                <exclude name="build/" />
358
                <exclude name=".sencha/" />
359
                        </fileset>
360
                        <depends packname="public" />
361
                </pack>
362
                <!-- CLIENT USER -->
363
                <pack name="client-user" preselected="yes" required="no" parent="Client">
364
                        <description>Client-user</description>
365
                        <fileset override="update" dir="../client-user-3.0"
366
                                targetdir="$INSTALL_PATH/$workspacePath/client-user-3.0">
367
                                <exclude name=".*" />
368
                                <exclude name=".settings/" />
369
                                <exclude name="node_modules/" />
370
                                <exclude name="build/" />
371
                                <exclude name=".sencha/" />
372
                        </fileset>
373
                        <fileset override="update" dir="../client-portal-3.0"
374
                                targetdir="$INSTALL_PATH/$workspacePath/client-portal-3.0">
375
                                <exclude name=".*" />
376
                                <exclude name=".settings/" />
377
                                <exclude name="node_modules/" />
378
                                <exclude name="build/" />
379
                <exclude name=".sencha/" />
380
                        </fileset>
381
                        <depends packname="public" />
382
                </pack>
383
                <!-- CLIENT EXTENSION -->
384
                <pack name="client-extension" preselected="yes" required="no" parent="Client">
385
                        <description>Client-extension</description>
386
                        <fileset override="update" dir="../client-extension-3.0"
387
                                         targetdir="$INSTALL_PATH/$workspacePath/client-extension-3.0">
388
                                <exclude name=".*" />
389
                                <exclude name=".settings/" />
390
                                <exclude name="node_modules/" />
391
                                <exclude name="build/" />
392
                                <exclude name=".sencha/" />
393
                        </fileset>
394
                        <depends packname="public" />
395
                </pack>
396
        </packs>
397
</installation>