source: release-kits/mark2/ant-scripts/create-installer.xml@ 17107

Last change on this file since 17107 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: 1.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark2-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="${mark2.home}/installer/antinstall-config.xml" overwrite="true"/>
14 <copy todir="${basedir}/installer" file="${mark2.home}/installer/build.xml" overwrite="true"/>
15 <copy todir="${basedir}/installer/classes" overwrite="true">
16 <fileset dir="${mark2.home}/greenstone2/installer-classes"/>
17 </copy>
18 <unjar src="${mark2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
19 <delete dir="${basedir}/installer/classes/META-INF"/>
20 <unjar src="${mark2.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 <installer file="${basedir}/installer/Greenstone-${version}-MacOS-${processor}.jar"
26 compress="true"
27 extractType="NonExtractor"
28 installConfig="${basedir}/installer/antinstall-config.xml"
29 buildFile="${basedir}/installer/build.xml"
30 antInstallLib="${mark2.home}/packages/ant-installer/lib"
31 antLib="${mark2.home}/packages/ant/lib"
32 validateConfig="true"
33 failOnError="false"
34 icons="bluecurve">
35
36 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
37 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
38
39 </installer>
40 </target>
41
42</project>
Note: See TracBrowser for help on using the repository browser.