source: release-kits/shared/greenstone3/ant-scripts/rk3-targets.xml@ 16801

Last change on this file since 16801 was 16801, checked in by oranfry, 13 years ago

a comment and whitespace change

File size: 5.9 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3 ..........................................................
4 August 2008
5 Targets for Greenstone3 release kits
6 Oran Fry
7 ..........................................................
8-->
9
10<project name="rk3-targets">
11
12 <target name="make-installer-files-concrete">
13
14 <!-- calculate the size of some components -->
15 <echo>Calculating the size of some components</echo>
16
17 <!-- core greenstone3 system (keep in sync with installer build.xml files) -->
18 <length property="component.bytesize.core" mode="all">
19 <fileset dir="${basedir}/distribution/greenstone3" includes="bin/**/*,docs/**/*,gli/**/*,gs2build/**/*,lib/**/*,web/**/*,resources/**/*,winutil/**/*"/>
20 </length>
21 <math result="component.megabytesize.core" operand1="${component.bytesize.core}" operation="/" operand2="1048576" datatype="int"/>
22 <property name="component.size.core" value="${component.megabytesize.core} MB"/>
23
24 <!-- source code (keep in sync with installer build.xml files) -->
25 <length property="component.bytesize.sourcecode" mode="all"><fileset dir="${basedir}/distribution/greenstone3" includes="src/**/*"/></length>
26 <math result="component.megabytesize.sourcecode" operand1="${component.bytesize.sourcecode}" operation="/" operand2="1048576" datatype="int"/>
27 <property name="component.size.sourcecode" value="${component.megabytesize.sourcecode} MB"/>
28
29 <!-- tomcat -->
30 <length property="component.bytesize.tomcat" mode="all"><fileset dir="${basedir}/distribution/greenstone3" includes="packages/tomcat/**/*"/></length>
31 <math result="component.megabytesize.tomcat" operand1="${component.bytesize.tomcat}" operation="/" operand2="1048576" datatype="int"/>
32 <property name="component.size.tomcat" value="${component.megabytesize.tomcat} MB"/>
33
34 <!-- ant -->
35 <length property="component.bytesize.ant" mode="all"><fileset dir="${basedir}/distribution/greenstone3" includes="packages/ant/**/*"/></length>
36 <math result="component.megabytesize.ant" operand1="${component.bytesize.ant}" operation="/" operand2="1048576" datatype="int"/>
37 <property name="component.size.ant" value="${component.megabytesize.ant} MB"/>
38
39 <!-- show the calculated sizes -->
40 <echo>component.size.core: ${component.size.core}</echo>
41 <echo>component.size.sourcecode: ${component.size.sourcecode}</echo>
42 <echo>component.size.tomcat: ${component.size.tomcat}</echo>
43 <echo>component.size.ant: ${component.size.ant}</echo>
44 <if>
45 <bool><equals arg1="windows" arg2="${rk.os}"/></bool>
46 <echo>component.size.windows-java: ${component.size.windows-java}</echo>
47 <else><if>
48 <bool><equals arg1="linux" arg2="${rk.os}"/></bool>
49 <echo>component.size.linux-java: ${component.size.linux-java}</echo>
50 </if></else>
51 </if>
52
53
54 <!-- put the concrete values of things in the config -->
55 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
56 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.core@" replacement="${component.size.core}"/>
57 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.sourcecode@" replacement="${component.size.sourcecode}"/>
58 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.linux-java@" replacement="${component.size.linux-java}"/>
59 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.windows-java@" replacement="${component.size.windows-java}"/>
60 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.tomcat@" replacement="${component.size.tomcat}"/>
61 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.ant@" replacement="${component.size.ant}"/>
62
63 <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/>
64
65 <!-- put the concrete values of things in the text -->
66 <!-- default -->
67 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
68 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
69 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
70 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
71
72 <!-- chinese -->
73 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
74 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
75 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
76 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
77
78 <!-- os specific replacements -->
79 <if>
80 <bool><equals arg1="windows" arg2="${rk.os}"/></bool>
81 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
82 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
83
84 <else><if>
85 <bool><equals arg1="linux" arg2="${rk.os}"/></bool>
86 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.linux-java}"/>
87 <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.linux-java}"/>
88 <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${linux-java.extracted}"/>
89
90 </if></else>
91
92 </if>
93
94 </target>
95
96</project>
Note: See TracBrowser for help on using the repository browser.