source: release-kits/lirk2/ant-scripts/create-installer.xml@ 17396

Last change on this file since 17396 was 17396, checked in by oranfry, 14 years ago

componentised releases in wirk2

File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-create-installer" default="create-installer">
3
4 <target name="create-installer">
5 <antcall target="copy-installer-files"/>
6 <antcall target="make-installer-files-concrete"/> <!-- from rk2-targets -->
7 <antcall target="compile-installer"/>
8 </target>
9
10 <target name="copy-installer-files">
11 <echo>Copying installer files</echo>
12 <mkdir dir="${basedir}/installer/classes"/>
13 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
14 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/>
15 <copy todir="${basedir}/installer/classes" overwrite="true">
16 <fileset dir="${lirk2.home}/greenstone2/installer-classes"/>
17 <fileset file="${basedir}/distributions/web/LICENSE.txt"/>
18 </copy>
19
20 <unjar src="${lirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
21 <delete dir="${basedir}/installer/classes/META-INF"/>
22
23 <unjar src="${lirk2.home}/ant-scripts/tasks/7z-ant/7z.jar" dest="${basedir}/installer/classes"/>
24 <delete dir="${basedir}/installer/classes/META-INF"/>
25
26 <unjar src="${lirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
27 <delete dir="${basedir}/installer/classes/META-INF"/>
28 </target>
29
30 <target name="compile-installer">
31
32 <!-- create the full installer -->
33 <installer file="${basedir}/installer/Greenstone-${version}-linux.jar"
34 compress="true"
35 extractType="NonExtractor"
36 installConfig="${basedir}/installer/antinstall-config.xml"
37 buildFile="${basedir}/installer/build.xml"
38 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
39 antLib="${lirk2.home}/packages/ant/lib"
40 validateConfig="true"
41 failOnError="false"
42 icons="bluecurve">
43
44 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
45 <zipfileset dir="${basedir}/components" includes="*.lzma"/>
46
47 </installer>
48
49 <dcff
50 file="${basedir}/installer/antinstall-config.xml"
51 startTag=".*&lt;!-- start full --&gt;"
52 endTag=".*&lt;!-- end full --&gt;"/>
53
54 <!-- create the minimal installer -->
55 <installer file="${basedir}/installer/Greenstone-${version}-linux-minimal.jar"
56 compress="true"
57 extractType="NonExtractor"
58 installConfig="${basedir}/installer/antinstall-config.xml"
59 buildFile="${basedir}/installer/build.xml"
60 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
61 antLib="${lirk2.home}/packages/ant/lib"
62 validateConfig="true"
63 failOnError="false"
64 icons="bluecurve">
65
66 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
67 <zipfileset dir="${basedir}/components" includes="core.lzma"/>
68
69 </installer>
70
71
72 </target>
73
74</project>
Note: See TracBrowser for help on using the repository browser.