source: release-kits/wirk2/installer/build.xml@ 16087

Last change on this file since 16087 was 16087, checked in by oranfry, 16 years ago

did the bulk of the work on the windows release kit for greenstone2

File size: 3.6 KB
Line 
1<?xml version="1.0"?>
2<!--
3This is the build.xml run by AntInstaller for the installer
4-->
5
6<project name="Installation">
7
8 <!-- this is required to pick up the properties generated during the install pages -->
9 <property file="${basedir}/ant.install.properties"/>
10
11 <path id="project.classpath">
12 <pathelement path="${antinstaller.jar}"/>
13 </path>
14
15 <!-- custom tasks -->
16 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
17
18 <condition property="bundled.java.exists">
19 <available file="../@java.extracted@/bin/java"/>
20 </condition>
21
22
23 <target name="install-core-components" depends="">
24
25 <echo>basedir: ${basedir}</echo>
26 <echo>installDir: ${installDir}</echo>
27 <echo>antinstaller.jar: ${antinstaller.jar}</echo>
28
29 <!-- create the installation directory -->
30 <echo message="Creating Installation directory"/>
31 <mkdir dir="${installDir}"/>
32
33
34 <!-- install files -->
35 <echo message="Installing GLI (gli)"/>
36 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="gli/**/*"/></patternset></unzip>
37 <echo/>
38
39 <echo message="Installing Executable Binaries (bin)"/>
40 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="bin/**/*"/></patternset></unzip>
41 <echo/>
42
43 <echo message="Installing CGI Binaries (cgi-bin)"/>
44 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="cgi-bin/**/*"/></patternset></unzip>
45 <echo/>
46
47 <echo message="Installing Config Folder (etc)"/>
48 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="etc/**/*"/></patternset></unzip>
49 <echo/>
50
51 <echo message="Installing mappings (mappings)"/>
52 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="mappings/**/*"/></patternset></unzip>
53 <echo/>
54
55 <echo message="Installing Packages (packages)"/>
56 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="packages/**/*"/></patternset></unzip>
57 <echo/>
58
59 <echo message="Installing Images (images)"/>
60 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="images/**/*"/></patternset></unzip>
61 <echo/>
62
63 <echo message="Installing Perl Libraries (perllib)"/>
64 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="perllib/**/*"/></patternset></unzip>
65 <echo/>
66
67 <echo message="Installing Indexers (indexers)"/>
68 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="indexers/**/*"/></patternset></unzip>
69 <echo/>
70
71 <echo message="Installing Macros (macros)"/>
72 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="macros/**/*"/></patternset></unzip>
73 <echo/>
74
75 <echo message="Installing Collect Folder (collect)"/>
76 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="collect/**/*"/></patternset></unzip>
77 <echo/>
78
79 <echo message="Installing Top Level Files"/>
80 <unzip src="${antinstaller.jar}" dest="${installDir}">
81 <patternset>
82 <include name="COPYING"/>
83 <include name="setup.bat"/>
84 <include name="server.exe"/>
85 </patternset>
86 </unzip>
87 <echo/>
88
89 <!-- delete unneeded files -->
90 <echo message="Deleting some extraneous files"/>
91 <delete dir="${installDir}/resources/icons"/>
92 <delete file="${installDir}/resources/*.png"/>
93
94 <echo message="Finished"/>
95
96 </target>
97
98 <!-- Source -->
99 <target name="install-source-code" depends="">
100 <echo message="Installing Source Code (src)"/>
101 <mkdir dir="${installDir}/src"/>
102 <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
103 </target>
104
105 <target name="cleanuptarget">
106 </target>
107
108
109</project>
Note: See TracBrowser for help on using the repository browser.