root/release-kits/lirk3/ant-scripts/create-installer.xml @ 15142

Revision 15142, 3.2 KB (checked in by oranfry, 11 years ago)

changes to the wrapper and installer logic, and a few changes to init and compile stuff

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4        ..........................................................
5        September 2007
6        Greenstone3 'release maker' script
7        Oran Fry
8        ..........................................................
9-->
10
11<project name="lirk3-create-installer" default="create-installer">
12
13    <target name="create-installer">
14        <addressedcall target="setup-for-installer-creation"/>
15        <addressedcall target="compile-installer"/>
16        <addressedcall target="clean-up-after-installer-creation"/>
17    </target>
18
19    <target name="setup-for-installer-creation">
20        <if><bool><istrue value="${execute}"/></bool>
21
22            <echo>Project Path: ${basedir}/distribution/greenstone3</echo>
23            <mkdir dir="${basedir}/installer"/>
24            <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml"/>
25            <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml"/>
26            <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
27            <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${java.extracted}"/>
28           
29        </if>
30    </target>
31
32    <target name="compile-installer">
33        <if><bool><istrue value="${execute}"/></bool>
34
35            <installer file="${basedir}/installer/greenstone3.jar"
36                    compress="true"
37                    extractType="NonExtractor"
38                    installConfig="${basedir}/installer/antinstall-config.xml"
39                    buildFile="${basedir}/installer/build.xml"
40                    antInstallLib="${lirk3.home}/bin/ant-installer/lib"
41                    antLib="${lirk3.home}/bin/ant-installer/antlib"
42                    validateConfig="true"
43                    icons="bluecurve">
44
45                <!-- copy all the important files into the archive to be extracted for install -->
46                <zipfileset dir="${lirk3.home}/installer/cp" includes="resources/*"/>
47                <zipfileset dir="${lirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
48
49                <zipfileset dir="${basedir}/distribution/greenstone3" includes="*"/>
50                <zipfileset dir="${basedir}/distribution/greenstone3/bin" prefix="bin"><include name="**/*"/></zipfileset>
51                <zipfileset dir="${basedir}/distribution/greenstone3/docs" prefix="docs"><include name="**/*"/></zipfileset>
52                <zipfileset dir="${basedir}/distribution/greenstone3/gli" prefix="gli"><include name="**/*"/></zipfileset>
53                <zipfileset dir="${basedir}/distribution/greenstone3/gs2build" prefix="gs2build"><include name="**/*"/></zipfileset>
54                <zipfileset dir="${basedir}/distribution/greenstone3/lib" prefix="lib"><include name="**/*"/></zipfileset>
55                <zipfileset dir="${basedir}/distribution/greenstone3/web" prefix="web"><include name="**/*"/></zipfileset>
56                <zipfileset dir="${basedir}/distribution/greenstone3/packages" prefix="packages"><include name="**/*"/></zipfileset>
57                <zipfileset dir="${basedir}/distribution/greenstone3/resources" prefix="resources"><include name="**/*"/></zipfileset>
58                <zipfileset dir="${basedir}/distribution/greenstone3/src" prefix="src"><include name="**/*"/></zipfileset>
59            </installer>
60
61        </if>
62    </target>
63
64    <target name="clean-up-after-installer-creation">
65        <if><bool><istrue value="${execute}"/></bool>
66            <delete file="${basedir}/installer/antinstall-config.xml"/>
67            <delete file="${basedir}/installer/build.xml"/>
68        </if>
69    </target>
70
71
72</project>
Note: See TracBrowser for help on using the browser.