source: release-kits/mark2/installer/build.xml@ 16818

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

fixed installer sourcecode target, use shared code from rk2 targets and show compnent sizes in mark2

File size: 3.1 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 <!-- install files -->
34 <echo message="Installing Core Files"/>
35 <unzip src="${antinstaller.jar}" dest="${installDir}">
36 <patternset>
37
38 <include name="gli/**/*"/>
39 <include name="bin/**/*"/>
40 <include name="cgi-bin/**/*"/>
41 <include name="etc/**/*"/>
42 <include name="mappings/**/*"/>
43 <include name="images/**/*"/>
44 <include name="perllib/**/*"/>
45 <include name="indexers/**/*"/>
46 <include name="macros/**/*"/>
47 <include name="collect/**/*"/>
48
49 <include name="Install.sh"/>
50 <include name="setup.bash"/>
51 <include name="setup.csh"/>
52 <include name="COPYING"/>
53 <include name="READMEar.txt"/>
54 <include name="READMEen.txt"/>
55 <include name="READMEes.txt"/>
56 <include name="READMEfr.txt"/>
57 <include name="READMEes.txt"/>
58 <include name="Support.htm"/>
59 </patternset>
60 </unzip>
61 <echo/>
62
63 <echo message="Setting Binaries to Executable"/>
64 <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/>
65 <chmod dir="${installDir}/bin/darwin" includes="*" perm="775"/>
66 <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/>
67 <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/>
68 <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
69 <echo/>
70
71 <echo message="Filling in concrete values in config files"/>
72 <rsr file="${installDir}/cgi-bin/gsdlsite.cfg" pattern="\*\*GSDLHOME\*\*" replacement="${installDir}"/>
73 <echo/>
74
75 <!-- delete unneeded files -->
76 <echo message="Deleting some extraneous files"/>
77 <delete dir="${installDir}/resources/icons"/>
78 <delete file="${installDir}/resources/*.png"/>
79
80 <echo message="Finished"/>
81
82 </target>
83
84 <!-- Source -->
85 <target name="install-source-code" depends="">
86 <echo message="Installing Source Code"/>
87 <unzip src="${antinstaller.jar}" dest="${installDir}">
88 <patternset>
89 <include name="common-src/**/*"/>
90 <include name="runtime-src/**/*"/>
91 <include name="build-src/**/*"/>
92 <include name="packages/**/*"/>
93 </patternset>
94 </unzip>
95 </target>
96
97 <target name="install-java">
98 <echo message="Installing bundled java"/>
99 <copy todir="${installDir}/packages/jre">
100 <fileset dir="../@java.extracted@"/>
101 </copy>
102 <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
103 </target>
104
105 <target name="cleanuptarget">
106 </target>
107
108
109</project>
Note: See TracBrowser for help on using the repository browser.