Project

General

Profile

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

git_sitools_idoc / flarecast / workspace / sitools-test-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="bin/validator/validator.jar" />
24
        <!-- <jar src="res/libraries/DatabasePanel.jar" /> -->
25
        <jar src="install_res/libraries/dbunit-2.4.8.jar" />
26
        <jar src="install_res/libraries/slf4j-api-1.6.1.jar" />
27
        <jar src="install_res/libraries/slf4j-jdk14-1.6.1.jar" />
28
        <!-- JDBC database drivers -->
29
        <jar src="install_res/libraries/postgresql-8.3-603.jdbc3.jar" />
30
        <jar src="install_res/libraries/mysql-connector-java-5.1.7-bin.jar" />
31
        <info>
32
                <appname>Sitools2 - Databases for tests</appname>
33
                <appversion>3.0</appversion>
34
                <authors>
35
                        <author email="" name="CNES" />
36
                        <author email="" name="Akka Technologies" />
37
                </authors>
38
                <uninstaller name="Uninstaller-DB-tests.jar" write="yes" />
39
                <javaversion>1.6</javaversion>
40
                <requiresjdk>no</requiresjdk>
41
                <writeinstallationinformation>yes</writeinstallationinformation>
42
                <summarylogfilepath>$INSTALL_PATH/installLog</summarylogfilepath>
43
        </info>
44

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

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

    
77
        <dynamicvariables>
78
                <variable name="db_url_pgsql"
79
                        value="jdbc:postgresql://${input.database.hostname.pgsql}:${input.database.port.pgsql}/${input.database.name.pgsql}" />
80
                <variable name="db_url_mysql"
81
                        value="jdbc:mysql://${input.database.hostname.mysql}:${input.database.port.mysql}/${input.database.name.mysql}" />
82
        </dynamicvariables>
83

    
84
        <panels>
85
                <panel classname="CheckedHelloPanel" />
86
                <panel classname="LicencePanel" />
87
                <panel classname="TreePacksPanel" />
88
                <panel classname="TargetPanel" />
89
                <panel classname="UserInputPanel" id="UserInputPanel.0">
90
                        <!-- Database validator -->
91
                        <validator classname="fr.cnes.sitools.izpack.validator.JDBCConnectionValidator" />
92
                </panel>
93
                <panel classname="SummaryPanel" />
94
                <panel classname="InstallPanel" />
95
                <!-- Panel to create databases -->
96
                <panel classname="DatabasePanel" />
97
                <panel classname="FinishPanel" />
98
        </panels>
99

    
100
        <variables>
101
                <variable name="workspacePath" value="workspace" />
102
                <variable name="fr.cnes.sitools.corePath" value="workspace/fr.cnes.sitools.core" />
103
                <variable name="fr.cnes.sitools.extensions" value="workspace/fr.cnes.sitools.extensions" />
104
                <variable name="libraries" value="workspace/libraries" />
105
                <variable name="resPath" value="res" />
106
                <variable name="propertiesPath" value="res/properties" />
107
                <variable name="imgPath" value="res/img" />
108
                <variable name="dbPath" value="res/db" />
109
                <!-- mysql -->
110
                <variable name="db_driver_mysql" value="org.gjt.mm.mysql.Driver" />
111
                <!-- postgresql -->
112
                <variable name="db_driver_pgsql" value="org.postgresql.Driver" />
113
        </variables>
114

    
115
        <packs>
116
                <!-- DATABASE PACKS -->
117
                <pack name="Databases" preselected="yes" required="yes">
118
                        <description>Database files</description>
119
                </pack>
120
                <!-- DB EXPORT FILES -->
121
                <!-- MYSQL -->
122
                <pack name="MySQL" preselected="yes" required="yes" parent="Databases">
123
                        <description>This package contains MySQL data for tests</description>
124
                        <fileset override="true" dir="./res/export/mysql"
125
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/export/mysql" />
126
                </pack>
127
                <!-- PostgreSQL -->
128
                <pack name="PostgreSQL" preselected="yes" required="yes" parent="Databases">
129
                        <description>This package contains PostgreSQL data for tests
130
                        </description>
131
                        <fileset override="true" dir="./res/export/postgresql"
132
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/export/postgresql" />
133
                </pack>
134
                <!-- SQL table creation and insert statement -->
135
                <pack name="SQL tables" preselected="yes" required="yes" parent="Databases">
136
                        <description>This package contains SQL files for tables init
137
                        </description>
138
                        <fileset override="true" dir="./res/create" includes="**/*.sql"
139
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/create" />
140
                        <parsable encoding="UTF-8"
141
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/create/postgresql/pgsql_fuse.sql"
142
                                type="ant" />
143
                        <parsable encoding="UTF-8"
144
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/create/postgresql/pgsql_sitools.sql"
145
                                type="ant" />
146
                        <parsable encoding="UTF-8"
147
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/res/create/postgresql/pgsql_test.sql"
148
                                type="ant" />
149
                </pack>
150
                <pack name="Properties" preselected="yes" required="yes">
151
                        <description>Properties files for tests execution (datasource files,
152
                                build-test.properties)</description>
153
                        <fileset override="true" dir="res/data/datasources"
154
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/data/datasources" />
155
                        <parsable encoding="UTF-8"
156
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/data/datasources/int@0.xml" />
157
                        <parsable encoding="UTF-8"
158
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/test/data/datasources/int@1.xml" />
159
                        <file override="update" src="res/build/build-test.properties"
160
                                targetdir="$INSTALL_PATH/$fr.cnes.sitools.corePath/conf/build/properties/" />
161
                        <parsable encoding="UTF-8"
162
                                targetfile="$INSTALL_PATH/$fr.cnes.sitools.corePath/conf/build/properties/build-test.properties"
163
                                type="javaprop" />
164

    
165
                </pack>
166
        </packs>
167

    
168
</installation>