root/release-kits/mark3/ant-scripts/create-installer.xml @ 16744

Revision 16744, 1.7 KB (checked in by oranfry, 12 years ago)

changes to mark3 after ant cleaned up

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-create-installer" default="create-installer">
3
4    <target name="create-installer">
5        <antcall target="calculate-component-sizes"/> <!-- from rk3-targets -->
6        <antcall target="copy-installer-files"/>
7        <antcall target="make-installer-files-concrete"/> <!-- from rk3-targets -->
8        <antcall target="compile-installer"/>
9    </target>
10
11    <target name="copy-installer-files">
12        <echo>Getting things ready to compile the installer</echo>
13        <mkdir dir="${basedir}/installer/resources"/>
14        <copy todir="${basedir}/installer" file="${mark3.home}/installer/antinstall-config.xml" overwrite="true" />
15        <copy todir="${basedir}/installer" file="${mark3.home}/installer/build.xml" overwrite="true" />
16        <copy todir="${basedir}/installer/classes" overwrite="true">
17            <fileset dir="${mark3.home}/greenstone3/installer-classes"/>
18            <fileset dir="${mark3.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
19        </copy>
20    </target>
21
22    <target name="compile-installer">
23        <installer file="${basedir}/installer/Greenstone-${version}-MacOS-${processor}.jar"
24                compress="true"
25                extractType="NonExtractor"
26                installConfig="${basedir}/installer/antinstall-config.xml"
27                buildFile="${basedir}/installer/build.xml"
28                antInstallLib="${mark3.home}/packages/ant-installer/lib"
29                antLib="${mark3.home}/packages/ant/lib"
30                validateConfig="true"
31                failOnError="false"
32                icons="bluecurve">
33
34            <!-- copy all the important files into the archive to be extracted for install -->
35            <zipfileset dir="${basedir}/installer/classes" includes="**/*" /> <!-- installer classes -->
36            <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
37
38        </installer>
39    </target>
40
41</project>
Note: See TracBrowser for help on using the browser.