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

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

compile search4j in release process and started standardising java installtion

File size: 2.5 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 <mkdir dir="${basedir}/installer/resources"/>
14
15 <!-- the installer descriptors -->
16 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml" overwrite="true" />
17 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml" overwrite="true" />
18
19 <!-- the language files and other canned classes for the installer -->
20 <copy todir="${basedir}/installer/classes" overwrite="true">
21 <fileset dir="${wirk3.home}/windows/installer-classes"/>
22 <fileset dir="${wirk3.home}/greenstone3/installer-classes"/>
23 </copy>
24
25 <!-- some classes from jars, unpacked to be repacked into installer -->
26 <unjar src="${wirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
27 <delete dir="${basedir}/installer/classes/META-INF"/>
28
29 </target>
30
31 <target name="compile-installer">
32
33 <installer file="${basedir}/installer/Greenstone-${version}-win32-with-java.jar"
34 compress="true"
35 extractType="NonExtractor"
36 installConfig="${basedir}/installer/antinstall-config.xml"
37 buildFile="${basedir}/installer/build.xml"
38 antInstallLib="${wirk3.home}/packages/ant-installer/lib"
39 antLib="${wirk3.home}/packages/ant/lib"
40 validateConfig="true"
41 icons="bluecurve">
42
43 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
44 <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*" />
45
46 </installer>
47
48 <!-- delete the 'bundled java only' lines from the installer config -->
49 <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*&lt;!-- bundled java only --&gt;" replacement=""/>
50
51 <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
52 compress="true"
53 extractType="NonExtractor"
54 installConfig="${basedir}/installer/antinstall-config.xml"
55 buildFile="${basedir}/installer/build.xml"
56 antInstallLib="${wirk3.home}/packages/ant-installer/lib"
57 antLib="${wirk3.home}/packages/ant/lib"
58 validateConfig="true"
59 icons="bluecurve">
60
61 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
62 <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*" />
63
64 </installer>
65
66 </target>
67
68</project>
Note: See TracBrowser for help on using the repository browser.