| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright 2004 The Apache Software Foundation |
| 4 |
|
| 5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
you may not use this file except in compliance with the License. |
| 7 |
You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
|
| 17 |
$Id: antinstall-config.xml,v 1.1 2007/03/10 01:15:38 shinsuke Exp $ |
| 18 |
--> |
| 19 |
<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" |
| 20 |
"http://antinstaller.sourceforge.net/dtd/antinstall-config-0.8.dtd"> |
| 21 |
|
| 22 |
<installer ui="swing,text" verbose="false" lookAndFeel="jgoodies" name="PAL Portal Installer" |
| 23 |
windowIcon="/resources/feather-small.png" defaultImageResource="/resources/palportal.gif" minJavaVersion="1.4" |
| 24 |
wide="700:250" antialiased="true"> |
| 25 |
|
| 26 |
<page type="input" name="intro" displayText="Welcome to the PAL Portal"> |
| 27 |
<comment displayText="" /> |
| 28 |
<comment displayText="This installer will guide you through setting up the PAL Portal." /> |
| 29 |
</page> |
| 30 |
|
| 31 |
<page type="license" name="license" displayText="License conditions" resource="/LICENSE.TXT"></page> |
| 32 |
|
| 33 |
<page type="input" name="properties" displayText="Installation location"> |
| 34 |
<directory property="installDir" defaultValue="${java.user.home}/PALPortal" |
| 35 |
defaultValueWin="C:\Apache\PALPortal" displayText="Select an installation directory" create="true" |
| 36 |
checkExists="true" /> |
| 37 |
<comment displayText=""/> |
| 38 |
<comment displayText="Warning: on Windows, the location must not contain spaces." bold="true"/> |
| 39 |
</page> |
| 40 |
|
| 41 |
<page type="input" name="requiredComponents" displayText="Components selection"> |
| 42 |
<comment displayText="PAL Portal" bold="true" /> |
| 43 |
<target displayText="Tomcat 5.5.20 Webserver" target="install" defaultValue="true" force="true" /> |
| 44 |
<checkbox displayText="PAL Portal" property="dummy" defaultValue="true" force="true" /> |
| 45 |
<checkbox displayText="Layout Portlets" property="dummy" defaultValue="true" force="true" /> |
| 46 |
<checkbox displayText="Portal Administration Portlets" property="dummy" defaultValue="true" force="true" /> |
| 47 |
<target displayText="Mail Server Configuration" target="mailServerConfiguration" |
| 48 |
defaultValue="true" force="true"/> |
| 49 |
</page> |
| 50 |
|
| 51 |
<page type="input" name="databaseSelection" displayText="Database selection"> |
| 52 |
<hidden property="checkdb" value="false" /> |
| 53 |
<hidden property="dbvalid" value="false" /> |
| 54 |
<hidden property="db.type" value="derby" /> |
| 55 |
<hidden property="dbDisplayName" value="Derby"/> |
| 56 |
<hidden property="setupDBAntTarget" value="runSetupDB" /> |
| 57 |
|
| 58 |
<comment displayText="Please select the target database type you want to use for the portal." /> |
| 59 |
<select property="dbName" displayText="Database type" defaultValue="derby"> |
| 60 |
<option text="DB2" value="db2" /> |
| 61 |
<option text="Derby" value="derby" /> |
| 62 |
<option text="MSSQL" value="mssql" /> |
| 63 |
<option text="MySql" value="mysql" /> |
| 64 |
<option text="PostgreSQL" value="postgres" /> |
| 65 |
<option text="Oracle (9i or higher)" value="oracle" /> |
| 66 |
<option text="SapDB" value="sapdb" /> |
| 67 |
<option text="Manual database setup" value="manual" /> |
| 68 |
</select> |
| 69 |
</page> |
| 70 |
|
| 71 |
<page type="input" name="mysql" displayText="MySQL Database connection parameters" ifProperty="${dbName}=mysql"> |
| 72 |
<hidden property="checkdb" value="true" /> |
| 73 |
<hidden property="dbvalid" value="false" /> |
| 74 |
<hidden property="dbDisplayName" value="MySQL"/> |
| 75 |
|
| 76 |
<comment displayText="Please fill in the fields below for connecting to the MySQL database." /> |
| 77 |
|
| 78 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 79 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 80 |
|
| 81 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 82 |
defaultValue="jdbc:mysql://localhost:3306/<dbname>" /> |
| 83 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="com.mysql.jdbc.Driver" /> |
| 84 |
|
| 85 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}mysql-connector-java-5.0.4.jar" |
| 86 |
displayText="JDBC driver" checkExists="true" /> |
| 87 |
</page> |
| 88 |
|
| 89 |
<page type="input" name="postgres" displayText="PostgreSQL Database connection parameters" |
| 90 |
ifProperty="${dbName}=postgres"> |
| 91 |
<hidden property="checkdb" value="true" /> |
| 92 |
<hidden property="dbvalid" value="false" /> |
| 93 |
<hidden property="dbDisplayName" value="PostgreSQL"/> |
| 94 |
|
| 95 |
<comment displayText="Please fill in the fields below for connecting to the PostgreSQL database." /> |
| 96 |
|
| 97 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 98 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 99 |
|
| 100 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 101 |
defaultValue="jdbc:postgresql://localhost:5432/<dbname>" /> |
| 102 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="org.postgresql.Driver" /> |
| 103 |
|
| 104 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}postgresql-8.1-405.jdbc3.jar" |
| 105 |
displayText="JDBC driver" checkExists="true" /> |
| 106 |
</page> |
| 107 |
|
| 108 |
<page type="input" name="sapdb" displayText="SapDB Database connection parameters" ifProperty="${dbName}=sapdb"> |
| 109 |
<hidden property="checkdb" value="true" /> |
| 110 |
<hidden property="dbvalid" value="false" /> |
| 111 |
<hidden property="dbDisplayName" value="SapDB"/> |
| 112 |
|
| 113 |
<comment displayText="Please fill in the fields below for connecting to the SapDB database." /> |
| 114 |
|
| 115 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 116 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 117 |
|
| 118 |
<text property="jdbcUrl" displayText="JDBC Connection String" defaultValue="jdbc:sapdb://localhost/<dbname>" /> |
| 119 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="com.sap.dbtech.jdbc.DriverSapDB" /> |
| 120 |
|
| 121 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}sapdb-jdbc-bin-7.4.04.03a.jar" |
| 122 |
displayText="JDBC driver" checkExists="true" /> |
| 123 |
</page> |
| 124 |
|
| 125 |
<page type="input" name="oracle" displayText="Oracle Database connection parameters" ifProperty="${dbName}=oracle"> |
| 126 |
<hidden property="checkdb" value="true" /> |
| 127 |
<hidden property="dbvalid" value="false" /> |
| 128 |
<hidden property="dbDisplayName" value="Oracle"/> |
| 129 |
|
| 130 |
<comment displayText="Please fill in the fields below for connecting to the Oracle database." /> |
| 131 |
|
| 132 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 133 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 134 |
|
| 135 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 136 |
defaultValue="jdbc:oracle:thin:@localhost:1521:<instance>" /> |
| 137 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="oracle.jdbc.driver.OracleDriver" /> |
| 138 |
|
| 139 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}ojdbc14.jar" |
| 140 |
displayText="JDBC driver" checkExists="true" /> |
| 141 |
</page> |
| 142 |
|
| 143 |
<page type="input" name="mssql" displayText="Microsoft SQL Server connection parameters" |
| 144 |
ifProperty="${dbName}=mssql"> |
| 145 |
<hidden property="checkdb" value="true" /> |
| 146 |
<hidden property="dbvalid" value="false" /> |
| 147 |
<hidden property="dbDisplayName" value="MSSQL"/> |
| 148 |
|
| 149 |
<comment displayText="Please fill in the fields below for connecting to the Microsoft SQL Server." /> |
| 150 |
|
| 151 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 152 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 153 |
|
| 154 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 155 |
defaultValue="jdbc:jtds:sqlserver://localhost:1433/<dbname>" /> |
| 156 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" |
| 157 |
defaultValue="net.sourceforge.jtds.jdbc.Driver" /> |
| 158 |
|
| 159 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}jtds-1.2.jar" |
| 160 |
displayText="JDBC driver" checkExists="true" /> |
| 161 |
</page> |
| 162 |
|
| 163 |
<page type="input" name="db2" displayText="DB2 Database connection parameters" ifProperty="${dbName}=mssql"> |
| 164 |
<hidden property="checkdb" value="true" /> |
| 165 |
<hidden property="dbvalid" value="false" /> |
| 166 |
<hidden property="dbDisplayName" value="DB2"/> |
| 167 |
|
| 168 |
<comment displayText="Please fill in the fields below for connecting to the DB2 database." /> |
| 169 |
|
| 170 |
<text property="dbUser" displayText="Database User Name" defaultValue="" /> |
| 171 |
<text property="dbPassword" displayText="Database Password" defaultValue="" /> |
| 172 |
|
| 173 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 174 |
defaultValue="jdbc:db2://localhost:1527/<dbname>" /> |
| 175 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" defaultValue="COM.ibm.db2.jdbc.app.DB2Driver" /> |
| 176 |
|
| 177 |
<file property="jdbcDriverJar" defaultValue="${java.user.home}${java.file.separator}db2jcc.jar" |
| 178 |
displayText="JDBC driver" checkExists="true" /> |
| 179 |
</page> |
| 180 |
|
| 181 |
<page type="input" name="preDBCheck" displayText="Testing the database connection" |
| 182 |
ifProperty="(${checkdb}=true) AND (${dbvalid}=false)" postDisplayTarget="antinstaller-checkdb"> |
| 183 |
<hidden property="db.type" value="${dbName}" /> |
| 184 |
<hidden property="db.username" value="${dbUser}" /> |
| 185 |
<hidden property="db.password" value="${dbPassword}" /> |
| 186 |
<hidden property="jdbc.url" value="${jdbcUrl}" /> |
| 187 |
<hidden property="jdbc.driver.class" value="${jdbcDriverClass}" /> |
| 188 |
<hidden property="jdbc.driver.jar" value="${jdbcDriverJar}" /> |
| 189 |
<hidden property="setupDBAntTarget" value="runSetupDB" /> |
| 190 |
<comment displayText="Press Next to test the database connection ..." /> |
| 191 |
</page> |
| 192 |
|
| 193 |
<page type="input" name="dbCheckFailed" displayText="Connection to the database failed" |
| 194 |
ifProperty="(${checkdb}=true) AND (${dbvalid}=false)"> |
| 195 |
<hidden property="checkdb" value="false" /> |
| 196 |
<hidden property="setupDBAntTarget" value="setupNoDB" /> |
| 197 |
|
| 198 |
<comment displayText="Please go back and specify the correct database configurtion parameters." bold="true" /> |
| 199 |
<comment displayText="" /> |
| 200 |
<comment displayText="Continuing now will otherwise require manual setup of the database."/> |
| 201 |
</page> |
| 202 |
|
| 203 |
<!-- Mail Server Configuration --> |
| 204 |
<page type="input" name="mailServerConfig" displayText="Mail Server Configuration"> |
| 205 |
<comment |
| 206 |
displayText="Please fill in the fields below with the approriate mail server information. The default values should work"/> |
| 207 |
|
| 208 |
<text property="mailServer" displayText="Mail server name" defaultValue="localhost"/> |
| 209 |
<text property="msUsername" displayText="User name"/> |
| 210 |
<text property="msPassword" displayText="Password"/> |
| 211 |
<checkbox property="msAuth" displayText="User authentication" defaultValue="false"/> |
| 212 |
</page> |
| 213 |
|
| 214 |
<page type="input" name="beforeInstall" displayText="Before your install ..." ifProperty="(${dbName}=manual) OR (${setupDBAntTarget}=setupNoDB)"> |
| 215 |
<hidden property="db.username" value="" /> |
| 216 |
<hidden property="db.password" value="" /> |
| 217 |
<hidden property="jdbc.url" value="" /> |
| 218 |
<hidden property="jdbc.driver.class" value="" /> |
| 219 |
<hidden property="jdbc.driver.jar" value="" /> |
| 220 |
<hidden property="setupDBAntTarget" value="setupNoDB" /> |
| 221 |
<comment displayText="PAL Portal will be installed without yet an configured database to:" bold="true"/> |
| 222 |
<comment displayText=" ${installDir}"/> |
| 223 |
<comment displayText="Warning: All content in this directory will be deleted first." bold="true"/> |
| 224 |
<comment displayText=""/> |
| 225 |
<comment displayText="After the installation you must manually setup the database."/> |
| 226 |
<comment displayText="An ant script is provided within the installation database directory." /> |
| 227 |
<comment displayText="The database configuration must be defined in a database.properties" /> |
| 228 |
<comment displayText="file provided in the same directory before running ant." /> |
| 229 |
<comment displayText="Initialize the database by running ant from the database directory." /> |
| 230 |
</page> |
| 231 |
|
| 232 |
<page type="input" name="beforeInstall" displayText="Before you install ..." ifProperty="${setupDBAntTarget}=runSetupDB"> |
| 233 |
<comment displayText="PAL Portal will be installed using a ${dbDisplayName} database to:" bold="true"/> |
| 234 |
<comment displayText=" ${installDir}"/> |
| 235 |
<comment displayText="Warning: All content in this directory will be deleted first!" bold="true"/> |
| 236 |
<comment displayText=""/> |
| 237 |
<comment displayText="After the installation you can manually reinitialize the database"/> |
| 238 |
<comment displayText="or even switch to another database using an ant script"/> |
| 239 |
<comment displayText="provided within the installation database directory." /> |
| 240 |
<comment displayText="The database configuration is defined in the database.properties" /> |
| 241 |
<comment displayText="file provided in the same directory before running ant." /> |
| 242 |
<comment displayText="Reinitialize the database by running ant from the database directory." /> |
| 243 |
</page> |
| 244 |
|
| 245 |
<page type="progress" name="progress" displayText="Installation progress" /> |
| 246 |
|
| 247 |
</installer> |