source: release-kits/wirk2/ant-scripts/create-installer.xml@ 16087

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

did the bulk of the work on the windows release kit for greenstone2

File size: 3.3 KB
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 <addressedcall target="setup-for-installer-creation"/>
6 <addressedcall target="compile-installer"/>
7 </target>
8
9 <target name="setup-for-installer-creation">
10 <if><bool><istrue value="${execute}"/></bool>
11
12 <mkdir dir="${basedir}/installer"/>
13 <copy todir="${basedir}/installer" file="${wirk2.home}/installer/antinstall-config.xml"/>
14 <copy todir="${basedir}/installer" file="${wirk2.home}/installer/build.xml"/>
15 <copy todir="${basedir}/installer/resources">
16 <fileset dir="${wirk2.home}/installer/resources-windows"/>
17 <fileset dir="${wirk2.home}/installer/resources-greenstone2"/>
18 </copy>
19
20 <!-- put the concrete values of things in the config -->
21 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
22 <rsr file="${basedir}/installer/build.xml" pattern="@version@" replacement="${version}"/>
23
24 <!-- put the concrete values of things in the text -->
25 <!-- default -->
26 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
27 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
28 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>
29 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
30 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
31
32 <!-- chinese -->
33 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
34 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
35 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>
36 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
37 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
38
39
40 </if>
41 </target>
42
43 <target name="compile-installer">
44 <if><bool><istrue value="${execute}"/></bool>
45
46 <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
47 compress="true"
48 extractType="NonExtractor"
49 installConfig="${basedir}/installer/antinstall-config.xml"
50 buildFile="${basedir}/installer/build.xml"
51 antInstallLib="${wirk2.home}/bin/ant-installer/lib"
52 antLib="${wirk2.home}/bin/apache-ant-1.6.5/lib"
53 validateConfig="true"
54 icons="bluecurve">
55
56 <zipfileset dir="${basedir}/installer/resources" prefix="resources"><include name="**/*"/></zipfileset>
57 <zipfileset dir="${wirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
58 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
59
60 </installer>
61
62 </if>
63 </target>
64
65</project>
Note: See TracBrowser for help on using the repository browser.