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

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

updates after the change of installer resources location in the repository

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