source: release-kits/lirk3/ant-scripts/create-installer.xml@ 17281

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

tidied up some xml files

File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk3-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 rk3-targets -->
7 <antcall target="compile-installer"/>
8 </target>
9
10 <target name="copy-installer-files">
11 <echo>Getting things ready to compile the installer</echo>
12 <mkdir dir="${basedir}/installer/resources"/>
13 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" overwrite="true" />
14 <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" overwrite="true" />
15 <copy todir="${basedir}/installer/classes" overwrite="true">
16 <fileset dir="${lirk3.home}/greenstone3/installer-classes"/>
17 </copy>
18 <unjar src="${lirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
19 <delete dir="${basedir}/installer/classes/META-INF"/>
20 </target>
21
22 <target name="compile-installer">
23
24 <installer file="${basedir}/installer/greenstone3-with-java.jar"
25 compress="true"
26 extractType="NonExtractor"
27 installConfig="${basedir}/installer/antinstall-config.xml"
28 buildFile="${basedir}/installer/build.xml"
29 antInstallLib="${lirk3.home}/packages/ant-installer/lib"
30 antLib="${lirk3.home}/packages/ant/lib"
31 validateConfig="true"
32 icons="bluecurve">
33
34 <zipfileset dir="${basedir}/installer/classes" includes="**/*" /> <!-- installer classes -->
35 <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
36
37 </installer>
38
39 <!-- delete the bundled java lines from the installer config -->
40 <dcff
41 file="${basedir}/installer/antinstall-config.xml"
42 startTag=".*&lt;!-- start bundled java only --&gt;"
43 endTag=".*&lt;!-- end bundled java only --&gt;"/>
44
45 <installer file="${basedir}/installer/greenstone3.jar"
46 compress="true"
47 extractType="NonExtractor"
48 installConfig="${basedir}/installer/antinstall-config.xml"
49 buildFile="${basedir}/installer/build.xml"
50 antInstallLib="${lirk3.home}/packages/ant-installer/lib"
51 antLib="${lirk3.home}/packages/ant/lib"
52 validateConfig="true"
53 icons="bluecurve">
54
55 <zipfileset dir="${basedir}/installer/classes" includes="**/*"/>
56 <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
57 </installer>
58
59 </target>
60
61</project>
Note: See TracBrowser for help on using the repository browser.