source: release-kits/wirk3/ant-scripts/create-installer.xml@ 17477

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

dont try to load the sevenzip task as it is no longer included in wirk3 installer

File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-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
12 <echo>Getting things ready to compile the installer</echo>
13
14 <!-- the installer descriptors -->
15 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml" overwrite="true" />
16 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml" overwrite="true" />
17
18 <!-- the language files and other canned classes for the installer -->
19 <copy todir="${basedir}/installer/classes" overwrite="true">
20 <fileset dir="${wirk3.home}/windows/installer-classes"/>
21 <fileset dir="${wirk3.home}/greenstone3/installer-classes"/>
22 <fileset dir="${wirk3.home}/packages/7za" includes="7za.exe"/>
23 <fileset file="${basedir}/distribution/greenstone3/LICENSE.txt"/>
24 </copy>
25
26 <!-- some classes from jars, unpacked to be repacked into installer -->
27 <unjar src="${wirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
28 <delete dir="${basedir}/installer/classes/META-INF"/>
29
30 <!--
31 <unjar src="${wirk3.home}/ant-scripts/tasks/orangevolt/roxes-win32forjava-1.1.1.jar" dest="${basedir}/installer/classes"/>
32 <delete dir="${basedir}/installer/classes/META-INF"/>
33
34 <unjar src="${wirk3.home}/ant-scripts/tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar" dest="${basedir}/installer/classes"/>
35 <delete dir="${basedir}/installer/classes/META-INF"/>
36 -->
37
38 </target>
39
40 <target name="compile-installer">
41
42 <installer file="${basedir}/installer/Greenstone-${version}-win32.jar"
43 compress="true"
44 extractType="NonExtractor"
45 installConfig="${basedir}/installer/antinstall-config.xml"
46 buildFile="${basedir}/installer/build.xml"
47 antInstallLib="${wirk3.home}/packages/ant-installer/lib"
48 antLib="${wirk3.home}/packages/ant/lib"
49 validateConfig="true"
50 icons="bluecurve">
51
52 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
53 <zipfileset dir="${basedir}/components" includes="*.lzma" />
54
55 </installer>
56
57 <dcff file="${basedir}/installer/antinstall-config.xml" startTag=".*&lt;!-- start full --&gt;.*" endTag=".*&lt;!-- end full --&gt;.*" />
58
59 <installer file="${basedir}/installer/Greenstone-${version}-win32-minimal.jar"
60 compress="true"
61 extractType="NonExtractor"
62 installConfig="${basedir}/installer/antinstall-config.xml"
63 buildFile="${basedir}/installer/build.xml"
64 antInstallLib="${wirk3.home}/packages/ant-installer/lib"
65 antLib="${wirk3.home}/packages/ant/lib"
66 validateConfig="true"
67 icons="bluecurve">
68 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
69 <zipfileset dir="${basedir}/components" includes="core.lzma" />
70 </installer>
71 </target>
72
73
74</project>
Note: See TracBrowser for help on using the repository browser.