| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" |
| 3 |
"http://antinstaller.sf.net/dtd/antinstall-config-0.7.dtd"> |
| 4 |
<!-- |
| 5 |
|
| 6 |
This is an example installer from which you can start a project |
| 7 |
Edit this file to select the properties you want decided, at the end |
| 8 |
of the installation screen the properties will be available in a file |
| 9 |
in the current directory for your ant script |
| 10 |
|
| 11 |
|
| 12 |
lookAndFeel="com.jgoodies.plaf.windows.ExtWindowsLookAndFeel" - not recommended since it is not linux compatible due to Micro$oft License restrictions |
| 13 |
|
| 14 |
lookAndFeel="net.sourceforge.mlf.metouia.MetouiaLookAndFeel" - good, and cross platform |
| 15 |
|
| 16 |
lookAndFeel="com.jgoodies.plaf.plastic.Plastic3DLookAndFeel" - good, and cross platform |
| 17 |
|
| 18 |
lookAndFeel="com.jgoodies.plaf.plastic.PlasticXPLookAndFeel" - good, and cross platform |
| 19 |
|
| 20 |
lookAndFeel="com.jgoodies.plaf.plastic.PlasticLookAndFeel" - good but flat, and cross platform |
| 21 |
--> |
| 22 |
|
| 23 |
<!-- |
| 24 |
|
| 25 |
defaultImageResource,windowIcon,resource and imageResource load from the classpath |
| 26 |
the installer script should put the locations of these resources on the classpath |
| 27 |
|
| 28 |
--> |
| 29 |
<installer ui="swing,text" verbose="false" |
| 30 |
lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel" |
| 31 |
name="Jetspeed 2.0 Installer" windowIcon="/resources/feather-small.png" |
| 32 |
defaultImageResource="/resources/apache-portals.gif" minJavaVersion="1.4"> |
| 33 |
<!-- each page element represents a page of the installer --> |
| 34 |
<page type="input" name="intro" displayText="Jetspeed 2.0"> |
| 35 |
<comment displayText="Welcome to Jetspeed 2.0!" title="true"/> |
| 36 |
<comment |
| 37 |
displayText="This installer program will guide you through an install of Jetspeed 2.0 Portal."/> |
| 38 |
</page> |
| 39 |
<!-- type="license" shows a license page to click through --> |
| 40 |
<page type="license" name="license" displayText="License conditions" |
| 41 |
resource="/resources/LICENSE.TXT"> |
| 42 |
</page> |
| 43 |
<!-- type="input" shows a list of editable options for the installer --> |
| 44 |
<page type="input" name="properties" displayText="Required install options"> |
| 45 |
<directory property="installDir" |
| 46 |
defaultValue="/usr/local/ApacheJetspeed2.0" |
| 47 |
defaultValueWin="${env.ProgramFiles}\Apache Jetspeed 2.0" |
| 48 |
displayText="Select an installation directory" create="true"/> |
| 49 |
</page> |
| 50 |
<page type="input" name="requiredComponents" displayText="Required Components"> |
| 51 |
<comment displayText="Required Components - Click Next" bold="true"/> |
| 52 |
<target displayText="Core components" target="install" defaultValue="true" |
| 53 |
force="true"/> |
| 54 |
<target displayText="Create Database" target="generateDb" |
| 55 |
defaultValue="true" force="true"/> |
| 56 |
<target displayText="Layout Portlets" target="layoutPortlets" |
| 57 |
defaultValue="true" force="true"/> |
| 58 |
<target displayText="Portal Administration Portlets" |
| 59 |
target="j2admin" defaultValue="true" force="true"/> |
| 60 |
|
| 61 |
</page> |
| 62 |
|
| 63 |
<page type="input" name="optionalPortlets" displayText="Optional Portlets"> |
| 64 |
|
| 65 |
<comment displayText="Choose the components you want to install" bold="true"/> |
| 66 |
<target displayText="Demo Portlets" target="demoPortlets" |
| 67 |
defaultValue="true" force="false"/> |
| 68 |
<target displayText="JPetstore Portlets" target="jpetstorePortlets" |
| 69 |
defaultValue="true" force="false"/> |
| 70 |
<target displayText="JSF Portlets" target="jsfPortlets" defaultValue="true" |
| 71 |
force="false"/> |
| 72 |
<target displayText="PERL Portlets" target="perlPortlets" |
| 73 |
defaultValue="true" force="false"/> |
| 74 |
<target displayText="PHP Portlets" target="phpPortlets" defaultValue="true" |
| 75 |
force="false"/> |
| 76 |
<target displayText="RSS Portlets" target="rssPortlets" defaultValue="true" |
| 77 |
force="false"/> |
| 78 |
</page> |
| 79 |
|
| 80 |
<!-- These are some other input types --> |
| 81 |
|
| 82 |
<page type="input" name="databaseInfo" displayText="Database information"> |
| 83 |
|
| 84 |
<comment |
| 85 |
displayText="Please fill in the fields below with the approriate database information."/> |
| 86 |
<comment displayText=" The default values should install Apache Derby as the Database."/> |
| 87 |
<large-select property="dbName" displayText="Database type" defaultValue="derby" > |
| 88 |
<option text="derby" value="derby" /> |
| 89 |
<option text="mysql" value="mysql" /> |
| 90 |
<option text="hsql" value="hsql" /> |
| 91 |
<option text="postgres" value="postgres" /> |
| 92 |
<option text="sapdb" value="sapdb" /> |
| 93 |
<option text="oracle" value="oracle" /> |
| 94 |
<option text="mssql" value="mssql" /> |
| 95 |
</large-select> |
| 96 |
<!-- <text property="dbName" displayText="Database type" |
| 97 |
defaultValue="derby"/> |
| 98 |
--> |
| 99 |
<text property="dbUser" displayText="Database User Name"/> |
| 100 |
<text property="dbPassword" displayText="Database Password"/> |
| 101 |
|
| 102 |
<text property="jdbcUrl" displayText="JDBC Connection String" |
| 103 |
defaultValue="jdbc:derby:${installDir}/webapps/jetspeed/WEB-INF/productiondb;create=true"/> |
| 104 |
<text property="jdbcDriverClass" displayText="JDBC Driver Classname" |
| 105 |
defaultValue="org.apache.derby.jdbc.EmbeddedDriver"/> |
| 106 |
|
| 107 |
<file property="jdbcDriverJar" |
| 108 |
defaultValue="${installDir}/shared/lib/derby-10.1.1.0.jar" |
| 109 |
defaultValueWin="${installDir}/shared/lib/derby-10.1.1.0.jar" |
| 110 |
displayText="JDBC driver" checkExists="false"/> |
| 111 |
|
| 112 |
</page> |
| 113 |
<!-- page type="progress" shows a progress page with the install button |
| 114 |
|
| 115 |
Its target is set to cleanuptarget since it is the last page this target will be run last--> |
| 116 |
<page type="progress" name="progress" displayText="Installation progress"> |
| 117 |
</page> </installer> |