root/release-kits/wirk2/ant-scripts/create-installer.xml @ 16745

Revision 16745, 3.2 KB (checked in by oranfry, 12 years ago)

changes to wirk2 after ant cleaned up

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk2-create-installer" default="create-installer">
3
4    <target name="create-installer">
5        <antcall target="setup-for-installer-creation"/>
6        <antcall target="compile-installer"/>
7    </target>
8
9    <target name="setup-for-installer-creation">
10        <mkdir dir="${basedir}/installer/classes"/>
11        <copy todir="${basedir}/installer" file="${wirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
12        <copy todir="${basedir}/installer" file="${wirk2.home}/installer/build.xml" overwrite="true"/>
13        <copy todir="${basedir}/installer/classes" overwrite="true">
14            <fileset dir="${wirk2.home}/greenstone2/installer-classes"/>
15            <fileset dir="${wirk2.home}/windows/installer-classes"/>
16            <fileset dir="${wirk2.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
17        </copy>
18       
19        <!-- put the concrete values of things in the config -->
20        <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
21        <rsr file="${basedir}/installer/build.xml" pattern="@version@" replacement="${version}"/>
22                               
23        <!-- put the concrete values of things in the text -->
24        <!-- default -->
25        <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
26        <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
27        <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
28        <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
29        <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
30       
31        <!-- chinese -->
32        <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
33        <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
34        <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
35        <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
36        <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
37    </target>
38
39    <target name="compile-installer">
40        <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
41            compress="true"
42            extractType="NonExtractor"
43            installConfig="${basedir}/installer/antinstall-config.xml"
44            buildFile="${basedir}/installer/build.xml"
45            antInstallLib="${wirk2.home}/packages/ant-installer/lib"
46            antLib="${wirk2.home}/packages/ant/lib"
47            validateConfig="true"
48            icons="bluecurve">
49           
50            <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
51            <zipfileset dir="${basedir}/distributions/web" includes="**/*" />
52           
53        </installer>
54    </target>
55   
56</project>
Note: See TracBrowser for help on using the browser.