forked from qjekingstar/eams-installer-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.xml
173 lines (159 loc) · 7.49 KB
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<installation version="5.0">
<info>
<appname>eams</appname>
<appversion>4.0</appversion>
<authors>
<author name="上海树维信息科技有限公司" email="[email protected]"/>
</authors>
<url>http://www.supwisdom.com/</url>
<requiresjdk>yes</requiresjdk>
<javaversion>1.6</javaversion>
<uninstaller write="no"/>
</info>
<!--
The gui preferences indication.
Sets the installer window to 640x480. It will not be able to change the size.
-->
<guiprefs width="800" height="600" resizable="yes"/>
<!--
The locale section.
Asks here to include the English and French langpacks.
-->
<locale>
<langpack iso3="chn"/>
<langpack iso3="eng"/>
</locale>
<!--
The resources section.
The ids must be these ones if you want to use the LicencePanel and/or the InfoPanel.
-->
<resources>
<res id="LicencePanel.licence" src="legal/Licence.txt" parse="yes" />
<!--
<res id="InfoPanel.info" src="Readme.txt"/>
-->
<res id="userInputSpec.xml" src="user_input_spec.xml" parse="yes" type="xml"/>
<res id="appContext.ftl" src="install/template/appContext.ftl"/>
<!-- H2 数据库创建脚本 -->
<res id="h2.create.1.sql" src="install/sql/h2/create/1-table.sql"/>
<!-- H2 数据库初始化数据脚本 -->
<res id="h2.init.1.sql" src="install/sql/h2/init/1-datas.sql"/>
<!-- Oracle 数据库创建脚本 -->
<res id="oracle.create.1.sql" src="install/sql/oracle/create/1-table.sql"/>
<res id="oracle.create.2.sql" src="install/sql/oracle/create/2-sequences.sql"/>
<res id="oracle.create.3.sql" src="install/sql/oracle/create/3-comments.sql"/>
<!-- Oracle 数据库初始化数据脚本 -->
<res id="oracle.init.1.sql" src="install/sql/oracle/init/1-datas.sql"/>
</resources>
<conditions>
<condition type="variable" id="installMode">
<name>modify.izpack.install</name>
<value>false</value>
</condition>
<condition type="variable" id="updateMode">
<name>modify.izpack.install</name>
<value>true</value>
</condition>
<condition type="variable" id="installDemoDBMode">
<name>dataInstallMode</name>
<value>DEFAULT_DB</value>
</condition>
<condition type="and" id="installDemoDB">
<condition type="ref" refid="installMode"/>
<condition type="ref" refid="installDemoDBMode" />
</condition>
<condition type="variable" id="installCustomDB">
<name>dataInstallMode</name>
<value>CUSTOM_DB</value>
</condition>
<condition type="and" id="installModeShowDatabasePanel">
<condition type="ref" refid="installMode"/>
<condition type="ref" refid="installCustomDB" />
</condition>
<condition type="or" id="showDatabasePanel">
<condition type="ref" refid="updateMode"/>
<condition type="ref" refid="installModeShowDatabasePanel" />
</condition>
<condition type="not" id="notWindows">
<condition type="ref" refid="izpack.windowsinstall"/>
</condition>
</conditions>
<!--
The panels section.
We indicate here which panels we want to use. The order will be respected.
-->
<panels>
<panel classname="HelloPanel" id="helloPanel"/>
<!--
<panel classname="InfoPanel" id="infoPanel"/>
-->
<panel classname="LicencePanel" id="licencePanel"/>
<panel classname="UserInputPanel" id="selectInstallModePanel"/>
<panel classname="TargetPanel" id="targetPanel" condition="installMode"/>
<panel classname="TargetPanel" id="updateTargetPanel" condition="updateMode">
<validator classname="com.ekingstar.eams.installer.validator.AppContextXMLExistsValidator" />
</panel>
<panel classname="UserInputPanel" id="selectDataInstallModePanel" condition="installMode">
<validator classname="com.ekingstar.eams.installer.validator.DataInstallModeValidator"/>
</panel>
<panel classname="com.ekingstar.eams.installer.panels.userinput.SelectAppContextXMLPanel" id="selectAppContextXMLPanel" condition="updateMode">
<validator classname="com.ekingstar.eams.installer.validator.AppConfigPrepare" />
</panel>
<panel classname="UserInputPanel" id="databasePanel" condition="showDatabasePanel">
<validator classname="com.ekingstar.eams.installer.validator.AppConfigValidator" />
</panel>
<panel classname="PacksPanel" id="packsPanel"/>
<panel classname="InstallPanel" id="installPanel"/>
<panel classname="FinishPanel" id="finishPanel"/>
</panels>
<jar src="install/lib/eams-install.jar"/>
<jar src="install/lib/commons-io-2.4.jar"/>
<jar src="install/lib/h2-1.3.148.jar"/>
<jar src="install/lib/ojdbc6.jar"/>
<jar src="install/lib/mybatis-3.2.2.jar"/>
<jar src="install/lib/freemarker-2.3.19.jar"/>
<listeners>
<listener classname="com.ekingstar.eams.installer.listener.SQLScriptExecuteListener" stage="install" />
<listener classname="com.ekingstar.eams.installer.listener.ApplicationConfigListener" stage="install" />
<listener classname="com.ekingstar.eams.installer.listener.EamsInstallerFileListener" stage="install" />
</listeners>
<!--
The packs section.
We specify here our packs.
-->
<packs>
<pack name="EAMS运行环境" required="yes" condition="installMode">
<description>EAMS系统运行的基础环境</description>
<file src="server/tomcat.zip" targetdir="$INSTALL_PATH" unpack="true"/>
</pack>
<pack name="EAMS核心平台" required="yes" installGroups="addWar" condition="installMode">
<description>EAMS系统核心平台</description>
<fileset dir="install/import/" targetdir="$INSTALL_PATH/tomcat/webapps/eams/WEB-INF/classes" casesensitive="yes">
<include name="*.xls"/>
</fileset>
<file src="webapp/eams.war" targetdir="$INSTALL_PATH/tomcat/webapps/eams" unpack="true"/>
</pack>
<pack name="安装样例数据库" required="yes" condition="installDemoDB" installGroups="createTable,initDatas,initDemoDatas">
<description>安装样例数据库</description>
</pack>
<pack name="创建数据结构" required="no" condition="showDatabasePanel" installGroups="createTable">
<description>创建数据结构</description>
<!-- Reccursive adding -->
</pack>
<pack name="初始化数据" required="no" condition="showDatabasePanel" installGroups="initDatas">
<description>初始化数据</description>
<!-- Reccursive adding -->
</pack>
<pack name="更新配置" required="yes" hidden="true" installGroups="updateAppCtxConfig">
<description>更新配置</description>
</pack>
<!--
<pack name="启动服务器" required="yes" hidden="true">
<description>启动服务器</description>
<executable targetfile="$INSTALL_PATH/tomcat/bin/startup.sh" condition="notWindows"/>
<executable targetfile="$INSTALL_PATH/tomcat/bin/startup.bat" condition="izpack.windowsinstall"/>
</pack>
-->
</packs>
</installation>