1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 | This 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="setup.bash"/>
|
---|
83 | <include name="setup.csh"/>
|
---|
84 | <include name="COPYING"/>
|
---|
85 | <include name="READMEar.txt"/>
|
---|
86 | <include name="READMEen.txt"/>
|
---|
87 | <include name="READMEes.txt"/>
|
---|
88 | <include name="READMEfr.txt"/>
|
---|
89 | <include name="READMEes.txt"/>
|
---|
90 | <include name="Support.htm"/>
|
---|
91 | </patternset>
|
---|
92 | </unzip>
|
---|
93 | <echo/>
|
---|
94 |
|
---|
95 | <echo message="Setting Binaries to Executable"/>
|
---|
96 | <chmod dir="${installDir}" includes="*.sh,*.bash" perm="775"/>
|
---|
97 | <chmod dir="${installDir}/bin/linux" includes="*" perm="775"/>
|
---|
98 | <chmod dir="${installDir}/cgi-bin" includes="*" perm="775"/>
|
---|
99 | <chmod dir="${installDir}/bin/script" includes="**/*" perm="775"/>
|
---|
100 | <chmod dir="${installDir}/gli" includes="*.sh" perm="775"/>
|
---|
101 | <echo/>
|
---|
102 |
|
---|
103 | <!-- delete unneeded files -->
|
---|
104 | <echo message="Deleting some extraneous files"/>
|
---|
105 | <delete dir="${installDir}/resources/icons"/>
|
---|
106 | <delete file="${installDir}/resources/*.png"/>
|
---|
107 |
|
---|
108 | <echo message="Finished"/>
|
---|
109 |
|
---|
110 | </target>
|
---|
111 |
|
---|
112 | <!-- Source -->
|
---|
113 | <target name="install-source-code" depends="">
|
---|
114 | <echo message="Installing Source Code (src)"/>
|
---|
115 | <mkdir dir="${installDir}/src"/>
|
---|
116 | <unzip src="${antinstaller.jar}" dest="${installDir}"><patternset><include name="src/**/*"/></patternset></unzip>
|
---|
117 | </target>
|
---|
118 |
|
---|
119 | <target name="install-java">
|
---|
120 | <echo message="Installing bundled java"/>
|
---|
121 | <copy todir="${installDir}/packages/jre">
|
---|
122 | <fileset dir="../@java.extracted@"/>
|
---|
123 | </copy>
|
---|
124 | <chmod dir="${installDir}/packages/jre/bin" includes="*" perm="775"/>
|
---|
125 | </target>
|
---|
126 |
|
---|
127 | <target name="cleanuptarget">
|
---|
128 | </target>
|
---|
129 |
|
---|
130 |
|
---|
131 | </project>
|
---|