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

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

delete the bundled java only lines in a better way

File size: 2.6 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 </copy>
18 <unjar src="${lirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
19 <delete dir="${basedir}/installer/classes/META-INF"/>
20 <unjar src="${lirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
21 <delete dir="${basedir}/installer/classes/META-INF"/>
22 </target>
23
24 <target name="compile-installer">
25 <!-- create the installer with java -->
26 <installer file="${basedir}/installer/greenstone-${version}-linux-with-java.jar"
27 compress="true"
28 extractType="NonExtractor"
29 installConfig="${basedir}/installer/antinstall-config.xml"
30 buildFile="${basedir}/installer/build.xml"
31 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
32 antLib="${lirk2.home}/packages/ant/lib"
33 validateConfig="true"
34 failOnError="false"
35 icons="bluecurve">
36
37 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
38 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
39
40 </installer>
41
42 <!-- delete the bundled java lines from the installer config -->
43 <dcff
44 file="${basedir}/installer/antinstall-config.xml"
45 startTag=".*&lt;!-- start bundled java only --&gt;"
46 endTag=".*&lt;!-- end bundled java only --&gt;"/>
47
48 <!-- create the installer without java -->
49 <installer file="${basedir}/installer/greenstone-${version}-linux.jar"
50 compress="true"
51 extractType="NonExtractor"
52 installConfig="${basedir}/installer/antinstall-config.xml"
53 buildFile="${basedir}/installer/build.xml"
54 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
55 antLib="${lirk2.home}/packages/ant/lib"
56 validateConfig="true"
57 failOnError="false"
58 icons="bluecurve">
59
60 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
61 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
62
63 </installer>
64
65 </target>
66
67</project>
Note: See TracBrowser for help on using the repository browser.