<?xml version="1.0"?>
<!DOCTYPE installer PUBLIC "-//tp23 //DTD Ant Installer Config//EN" "http://antinstaller.sf.net/dtd/antinstall-config-0.7.dtd">
<!--

This is an example installer from which you can start a project
Edit this file to select the properties you want decided, at the end
of the installation screen the properties will be available in a file
in the current directory for your ant script


lookAndFeel="com.jgoodies.plaf.windows.ExtWindowsLookAndFeel"  - not recommended since it is not linux compatible due to Micro$oft License restrictions

lookAndFeel="net.sourceforge.mlf.metouia.MetouiaLookAndFeel"  - good, and cross platform

lookAndFeel="com.jgoodies.plaf.plastic.Plastic3DLookAndFeel"  - good, and cross platform

lookAndFeel="com.jgoodies.plaf.plastic.PlasticXPLookAndFeel"  - good, and cross platform

lookAndFeel="com.jgoodies.plaf.plastic.PlasticLookAndFeel" - good but flat, and cross platform
-->

<!--

defaultImageResource,windowIcon,resource and imageResource load from the classpath
the installer script should put the locations of these resources on the classpath

-->
<installer
			ui="swing,text"
			verbose="false"
			lookAndFeel="org.tp23.jgoodies.plaf.plastic.PlasticXPLookAndFeel"
			name="Demo Installer"
			windowIcon="/resources/gkmain_inv.png"
			defaultImageResource="/resources/greens.png"
			minJavaVersion="1.4">
	<!--  each page element represents a page of the installer -->
	<page
			type="input"
			name="intro"
			displayText="Welcome to the example installer program"
			imageResource="/resources/greens.png">
		<comment
				displayText="This is a demo install"
				title="true"/>
		<comment
				displayText="The application installed is yer typical Hello World"
				bold="true"/>
		<comment
				displayText="There is not much more to be said really."/>
	</page>
	<!--  type="license" shows a license page to click through -->
	<page
			type="license"
			name="license"
			displayText="License conditions"
			resource="/resources/GPL.txt"
			imageResource="/resources/rockstiles.png">
	</page>
	<!--  type="input" shows a list of editable options for the installer -->
	<page
			type="input"
			name="properties"
			displayText="Required install options">
		<directory
				property="installDir"
				defaultValue="/usr/local/demoapp"
				defaultValueWin="${env.ProgramFiles}\demoapp"
				displayText="Select an installation directory"
				create="true"/>
	</page>
	<page
			type="input"
			name="selector"
			displayText="Components to install">
		<comment
				displayText="Choose the components you want to install"
				bold="true"/>
		<target
			displayText="Core components"
			target="default"
			defaultValue="true"
			force="true"/>
		<target
			displayText="Source code"
			target="tgsrc"
			defaultValue="false"/>
		<target
			displayText="Documentation"
			target="tgdoc"
			defaultValue="true"/>
	</page>
	<!--  These are some other input types -->
	<page
			type="input"
			name="other-input-types"
			displayText="Pointless install options">
		<text
				property="TextProperty"
				defaultValue="blah blah"
				displayText="Enter any text"/>
		<checkbox
				property="BooleanProperty"
				displayText="Make a boolean decision"
				defaultValue="true"
				force="false"/>
		<select
				property="Colour"
				defaultValue="#FF0000"
				displayText="Choose the option"
				explanatoryText="This field can be used on any input field to render further descriptive text">
			<option text="Red" value="#FF0000"/>
			<option text="Green" value="#00FF00"/>
			<option text="Blue" value="#0000FF"/>
		</select>
		<file
				property="SelectedFile"
				defaultValue="/usr/tomcat/webapps/default/WEB-INF/web.xml"
				defaultValueWin="C:\autoexec.bat"
				displayText="Select a file"
				checkExists="false"/>
	</page>
	<!--  page type="progress" shows a progress page with the install button 
				Its target is set to cleanuptarget since it is the last page this target will be run last-->
	<page
			type="progress"
			name="progress"
			showTargets="true"
			displayText="Installation progress"
			target="cleanuptarget">
	</page>
</installer>


