source: release-kits/lirk2/installer/build.xml@ 16740

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

simplification of installer descriptors

File size: 2.9 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/linux" 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 <!-- delete unneeded files -->
72 <echo message="Deleting some extraneous files"/>
73 <delete dir="${installDir}/resources/icons"/>
74 <delete file="${installDir}/resources/*.png"/>
75
76 <echo message="Finished"/>
77
78 </target>
79
80 <!-- Source -->
81 <target name="install-source-code" depends="">
82 <echo message="Installing Source Code"/>
83 <unzip src="${antinstaller.jar}" dest="${installDir}">
84 <patternset>
85 <include name="common-src/**/*"/>
86 <include name="runtime-src/**/*"/>
87 <include name="build-src/**/*"/>
88 </patternset>
89 </unzip>
90 </target>
91
92 <target name="install-java">
93 <echo message="Installing bundled java"/>
94 <copy todir="${installDir}/packages/jre">
95 <fileset dir="../@java.extracted@"/>
96 </copy>
97 <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
98 </target>
99
100 <target name="cleanuptarget">
101 </target>
102
103
104</project>
Note: See TracBrowser for help on using the repository browser.