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

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

changed the name of the installer jar

File size: 4.5 KB
RevLine 
[14982]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
[15980]11<project name="lirk2-create-installer" default="create-installer">
[14982]12
13 <target name="create-installer">
[15142]14 <addressedcall target="setup-for-installer-creation"/>
15 <addressedcall target="compile-installer"/>
16 </target>
17
18 <target name="setup-for-installer-creation">
[14982]19 <if><bool><istrue value="${execute}"/></bool>
20
[16002]21 <echo>Getting things ready to compile the installer</echo>
22 <mkdir dir="${basedir}/installer/resources"/>
[15980]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"/>
[16002]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>
[15205]31
32 <!-- put the concrete values of things in the config -->
[15142]33 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
[15980]34 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.java@" replacement="${component.size.java}"/>
[15205]35 <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/>
[15142]36 <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${java.extracted}"/>
[15205]37
38 <!-- put the concrete values of things in the text -->
39 <!-- default -->
[16002]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}"/>
[15205]43
44 <!-- chinese -->
[15980]45 <!--
[16002]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}"/>
[15980]51 -->
[15205]52
[15980]53
[15142]54 </if>
55 </target>
56
57 <target name="compile-installer">
58 <if><bool><istrue value="${execute}"/></bool>
59
[15980]60 <!-- create the installer with java -->
[16094]61 <installer file="${basedir}/installer/greenstone-${version}-linux-with-java.jar"
[15205]62 compress="true"
63 extractType="NonExtractor"
64 installConfig="${basedir}/installer/antinstall-config.xml"
65 buildFile="${basedir}/installer/build.xml"
[15980]66 antInstallLib="${lirk2.home}/bin/ant-installer/lib"
[15994]67 antLib="${lirk2.home}/bin/apache-ant-1.6.5/lib"
[15205]68 validateConfig="true"
[15304]69 failOnError="false"
[15205]70 icons="bluecurve">
71
[16002]72 <zipfileset dir="${basedir}/installer" includes="resources/*"/>
[15980]73 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
74 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
[15205]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
[15980]81 <!-- create the installer without java -->
[16094]82 <installer file="${basedir}/installer/greenstone-${version}-linux.jar"
[14982]83 compress="true"
84 extractType="NonExtractor"
[15142]85 installConfig="${basedir}/installer/antinstall-config.xml"
86 buildFile="${basedir}/installer/build.xml"
[15980]87 antInstallLib="${lirk2.home}/bin/ant-installer/lib"
[15994]88 antLib="${lirk2.home}/bin/apache-ant-1.6.5/lib"
[14982]89 validateConfig="true"
[15980]90 failOnError="false"
[14982]91 icons="bluecurve">
92
[16002]93 <zipfileset dir="${basedir}/installer" includes="resources/*"/>
[15980]94 <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
95 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
[14982]96
97 </installer>
98
99 </if>
100 </target>
101
102</project>
Note: See TracBrowser for help on using the repository browser.