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

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

have lirk2 get the linux general stuff

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