source: release-kits/lirk2/ant-scripts/create-installer.xml@ 16175

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

made lirk2 work under the new shared code scheme

File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="lirk2-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 <echo>Getting things ready to compile the installer</echo>
13 <mkdir dir="${basedir}/installer/resources"/>
14 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
15 <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/>
16 <copy todir="${basedir}/installer/resources" overwrite="true">
17 <fileset dir="${lirk2.home}/greenstone2/installer-resources"/>
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/antinstall-config.xml" pattern="@component.size.java@" replacement="${component.size.linux-java}"/>
23 <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/>
24 <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${linux-java.extracted}"/>
25
26 <!-- put the concrete values of things in the text -->
27 <!-- default -->
28 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
29 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
30 <rsr file="${basedir}/installer/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.linux-java}"/>
31
32 <!-- chinese -->
33 <!--
34 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
35 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
36 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>
37 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
38 <rsr file="${basedir}/installer/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
39 -->
40
41
42 </if>
43 </target>
44
45 <target name="compile-installer">
46 <if><bool><istrue value="${execute}"/></bool>
47
48 <!-- create the installer with java -->
49 <installer file="${basedir}/installer/greenstone-${version}-linux-with-java.jar"
50 compress="true"
51 extractType="NonExtractor"
52 installConfig="${basedir}/installer/antinstall-config.xml"
53 buildFile="${basedir}/installer/build.xml"
54 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
55 antLib="${lirk2.home}/packages/ant/lib"
56 validateConfig="true"
57 failOnError="false"
58 icons="bluecurve">
59
60 <zipfileset dir="${basedir}/installer" includes="resources/*"/>
61 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
62 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
63
64 </installer>
65
66 <!-- delete the 'bundled java only' lines from the installer config -->
67 <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*&lt;!-- bundled java only --&gt;" replacement=""/>
68
69 <!-- create the installer without java -->
70 <installer file="${basedir}/installer/greenstone-${version}-linux.jar"
71 compress="true"
72 extractType="NonExtractor"
73 installConfig="${basedir}/installer/antinstall-config.xml"
74 buildFile="${basedir}/installer/build.xml"
75 antInstallLib="${lirk2.home}/packages/ant-installer/lib"
76 antLib="${lirk2.home}/packages/ant/lib"
77 validateConfig="true"
78 failOnError="false"
79 icons="bluecurve">
80
81 <zipfileset dir="${basedir}/installer" includes="resources/*"/>
82 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
83 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
84
85 </installer>
86
87 </if>
88 </target>
89
90</project>
Note: See TracBrowser for help on using the repository browser.