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

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

changed build scripts and create-installer targets after the greenstone ant tasks were moved. also, greenstone2 installer now creates admin and demo users at install

File size: 2.5 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 only' lines from the installer config -->
43 <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*&lt;!-- bundled java only --&gt;" replacement=""/>
44
45 <!-- create the installer without java -->
46 <installer file="${basedir}/installer/greenstone-${version}-linux.jar"
47 compress="true"
48 extractType="NonExtractor"
49 installConfig="${basedir}/installer/antinstall-config.xml"
50 buildFile="${basedir}/installer/build.xml"
51 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
52 antLib="${lirk2.home}/packages/ant/lib"
53 validateConfig="true"
54 failOnError="false"
55 icons="bluecurve">
56
57 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
58 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
59
60 </installer>
61
62 </target>
63
64</project>
Note: See TracBrowser for help on using the repository browser.