source: main/trunk/release-kits/shared/core/ant-scripts/shared.xml

Last change on this file was 37671, checked in by anupama, 12 months ago

Needed to add 1Mb to the dmg overhead (following our internal wiki instructions), so that the mac wrapper has enough space during the wrapper stage. The Mac dmg is now back to being generated. The linux installer uses wrapper.cpp which has the -textonly and -extract commands. The Mac installer (dmg's .app) uses a custom greenstone script which does not use the linux wrapper.cpp code. However, the VM is text-only so triggers a textonly mode somehow, which is why we see the GS installer's textonly menu anyway.

File size: 21.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="rk-init">
3
4 <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpath="${rk.home}/shared/core/lib/AntelopeTasks_3.4.2.jar"/>
5
6 <!-- CHECK PRE-CONDITIONS -->
7 <target name="init">
8 <!-- load in static properties from build.properties -->
9 <property file="${rk.name}-build.properties" />
10
11 <!-- load environment properties -->
12 <property environment="env"/>
13
14 <if>
15 <bool><isset property="env.JAVACFLAGS"/></bool>
16 <property name="compile.javac.flags" value="${env.JAVACFLAGS}"/>
17 <else>
18 <property name="compile.javac.flags" value=""/>
19 </else>
20 </if>
21
22 <!-- CLASSPATH -->
23 <path id="project.classpath">
24
25 <!-- our classes -->
26 <fileset dir="${rk.home}/shared/core">
27 <include name="ant-tasks/antelope/AntelopeTasks_3.4.2.jar"/>
28 <include name="ant-tasks/orangevolt/roxes-win32forjava-1.1.1.jar"/>
29 <include name="ant-tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar"/>
30 <include name="ant-tasks/greenstone/anttasks.jar"/>
31 <include name="ant-tasks/7z-ant/7z.jar"/>
32 <include name="lib/crypt.jar"/>
33 <include name="lib/serializer.jar"/>
34 <include name="lib/xalan.jar"/>
35 <include name="lib/xercesImpl.jar"/>
36 <include name="lib/xml-apis.jar"/>
37 <include name="ant-installer/lib/ant-installer-ext.jar"/>
38 <include name="ant-installer/lib/ant-installer.jar"/>
39 </fileset>
40
41 </path>
42
43 <!-- SELF DEFINED TASKS AND TYPES -->
44 <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
45 <taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
46 <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/>
47 <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
48 <taskdef name="installer" classname="org.tp23.antinstaller.taskdefs.Installer" classpathref="project.classpath"/>
49 <typedef name="iuv" classname="org.greenstone.anttasks.InsertUniqueValue" classpathref="project.classpath"/>
50 <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
51 <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="project.classpath"/>
52 <typedef name="pstf" classname="org.greenstone.anttasks.PatternSetToFile" classpathref="project.classpath"/>
53 <typedef name="rsplit" classname="org.greenstone.anttasks.SplitResource" classpathref="project.classpath"/>
54 <typedef name="get-property-value" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="project.classpath"/>
55
56 <!-- CONSTANTS (overridable in build.properties) -->
57
58 <!-- svn root -->
59 <property name="svn.root" value="https://svn.greenstone.org"/>
60
61 <!-- any global svn args that need to be used in each call - currently we have ones
62 that mean we can ignore the non trusted certificate, which comes up every
63 three months when our SSL certificate is renewed. -->
64 <property name="global-svn-args" value="--non-interactive --trust-server-cert"/>
65 <!-- the minimum version of java which the installer should be run with (this gets used in search4j) -->
66 <property name="java.min.version" value="1.8.0_00"/>
67
68 <!-- create a localised basedir property -->
69 <path id="basedir.path"><pathelement location="${basedir}"/></path>
70 <property name="basedir.local" refid="basedir.path"/>
71
72 <!-- size of resource chunks (windows wrapper) -->
73 <property name="resources.chunksize" value="8388608"/>
74
75 <!-- the extra space for the dmg image in KB (mac wrapper) -->
76 <property name="dmg.overhead" value="16384"/> <!--12288-->
77
78 <!-- current date and time -->
79 <tstamp>
80 <format property="current.month" pattern="MMM"/>
81 <format property="current.year" pattern="yyyy"/>
82 <format property="date" pattern="yyyy.MM.dd"/>
83 </tstamp>
84
85 <!-- extra features -->
86 <property name="version-extra" value="" />
87 <property name="post.2.83.version" value="true" />
88 <property name="x64" value="false" />
89
90 <if>
91 <bool><equals arg1="${x64}" arg2="true"/></bool>
92 <property name="extension-x64" value="-x64" />
93 <property name="extension_x64" value="_x64" />
94 <else>
95 <property name="extension-x64" value="" />
96 <property name="extension_x64" value="" />
97 </else>
98 </if>
99
100 <!-- BUNDLED JAVA INFO -->
101 <!-- the bundled javas are kept in shared/linux/wrapper and shared/windows/wrapper in the repository -->
102 <!-- change this info when the bundled version changes -->
103 <property name="java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
104
105 <!-- linux -->
106 <property name="linux-java.installer" value="jre_bin${extension_x64}"/>
107 <property name="bundled.version.linux-java" value="1.7.0_72"/> <!-- set this to the version number of java in the above archive -->
108 <property name="component.bytesize.linux-java" value="101245987"/> <!-- set this to the size of the extract archive -->
109
110 <!-- windows -->
111 <property name="windows-java.installer" value="jre.exe"/>
112 <property name="bundled.version.windows-java" value="1.7.0_72"/> <!-- set this to the version number of java in the above archive -->
113 <property name="component.bytesize.windows-java" value="75000000"/> <!-- set this to the size of the extract archive -->
114
115 <!-- mac -->
116 <!-- only a jre_bin for 64 bit macs -->
117 <property name="mac-java.installer" value="jre_bin_x64"/>
118 <property name="bundled.version.mac-java" value="1.7.0_79"/> <!-- set this to the version number of java in the above archive -->
119 <property name="component.bytesize.mac-java" value="30688272"/> <!-- set this to the size of the archive, NOT the extracted archive, since we'll extract it into the /tmp folder -->
120
121 <!-- version numbers of other bundled things -->
122 <property name="bundled.version.imagemagick" value="6.4.3"/>
123 <property name="bundled.version.ghostscript" value="8.63"/>
124 <property name="bundled.version.tomcat" value="8.5.35"/>
125
126 <!-- default revision and branch path -->
127 <property name="branch.revision" value="HEAD" />
128 <property name="branch.path" value="trunk" />
129
130 <!-- DATES IN DIFFERENT LANGUAGES -->
131 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="ar.Dates.${current.month}" outputProperty="month.ar"/>
132 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="ca.Dates.${current.month}" outputProperty="month.ca"/>
133 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="el.Dates.${current.month}" outputProperty="month.el"/>
134 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="es.Dates.${current.month}" outputProperty="month.es"/>
135 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="fr.Dates.${current.month}" outputProperty="month.fr"/>
136 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="lv.Dates.${current.month}" outputProperty="month.lv"/>
137 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="mr.Dates.${current.month}" outputProperty="month.mr"/>
138 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="ro.Dates.${current.month}" outputProperty="month.ro"/>
139 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="ru.Dates.${current.month}" outputProperty="month.ru"/>
140 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="vi.Dates.${current.month}" outputProperty="month.vi"/>
141 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="zh.Dates.${current.month}" outputProperty="month.zh"/>
142 <get-property-value propertiesFile="${rk.home}/shared/core/lib/dates.properties" propertyName="default.Dates.${current.month}" outputProperty="month.default"/>
143
144
145 <!-- version number -->
146 <if><bool><not><isset property="version"/></not></bool>
147 <fail>Version number not set. Check that the file '${rk.name}-build.properties' exists and defines property 'version'.</fail>
148 </if>
149 <property name="app.version" value="${version}"/>
150
151 <!-- work out rk.os -->
152 <if>
153 <bool>
154 <or>
155 <equals arg1="${rk.os}" arg2="linux"/>
156 <equals arg1="${rk.os}" arg2="mac"/>
157 <equals arg1="${rk.os}" arg2="windows"/>
158 </or>
159 </bool>
160 <echo>Using user-specified value for rk.os: '${rk.os}'</echo>
161
162 <else><if>
163 <bool><equals arg1="${os.name}" arg2="Linux"/></bool>
164 <property name="rk.os" value="linux"/>
165
166 <else><if>
167 <bool><equals arg1="${os.name}" arg2="Mac OS X"/></bool>
168 <property name="rk.os" value="mac"/>
169
170 <else><!--<if>
171 <bool>
172 <or>
173 <equals arg1="${os.name}" arg2="Windows 95"/>
174 <equals arg1="${os.name}" arg2="Windows 98"/>
175 <equals arg1="${os.name}" arg2="Windows 2000"/>
176 <equals arg1="${os.name}" arg2="Windows XP"/>
177 <equals arg1="${os.name}" arg2="Windows NT"/>
178 <equals arg1="${os.name}" arg2="Windows ME"/>
179 <equals arg1="${os.name}" arg2="Windows Vista"/>
180 <equals arg1="${os.name}" arg2="Windows 7"/>
181 </or>
182 </bool>
183 <property name="rk.os" value="windows"/>-->
184 <if>
185 <bool><os family="windows"/></bool>
186 <property name="rk.os" value="windows"/>
187 <else>
188 <fail>Can't work out what to set rk.os to. Please report this to [email protected] . In the mean time, manually set rk.os to 'windows', 'mac', or 'linux' by reinvoking the release kit with, for example, '-Drk.os=windows'</fail>
189
190 </else></if></else></if></else></if></else></if>
191
192 <!-- set os.suffix and os.shell -->
193 <if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
194 <exec executable="uname" outputproperty="mac.arch">
195 <arg line="-p"/>
196 </exec>
197
198 <if><bool><equals arg1="${mac.arch}" arg2="powerpc"/></bool>
199 <property name="os.suffix" value="MacOS-ppc"/>
200 <property name="arch" value="-ppc"/>
201 <else>
202 <property name="os.suffix" value="MacOS-intel"/>
203 <property name="arch" value="-intel"/>
204 </else>
205 </if>
206
207 <property name="os.shell" value="darwin"/>
208 </if>
209 <property name="arch" value=""/>
210
211 <property name="os.suffix" value="${rk.os}"/>
212 <property name="os.shell" value="${rk.os}"/>
213
214 <!-- set os.script.format -->
215 <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
216 <property name="os.script.format" value="sh"/>
217 <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
218 <property name="os.script.format" value="bat"/>
219 </if></else></if>
220
221 <!-- show important properties -->
222 <echo level="info">Version (version): ${version}${version-extra}</echo>
223 <echo level="info">Major Version (version.major): ${version.major}</echo>
224 <echo level="info">Branch Path (branch.path): ${branch.path}</echo>
225 <echo level="info">Date (date): ${date}</echo>
226 <echo level="info">Current Month (current.month): ${current.month}</echo>
227 <echo level="info">Current Year (current.year): ${current.year}</echo>
228 <echo level="info">Operating System (rk.os): ${rk.os}</echo>
229 <echo level="info">Operating System Suffix (os.suffix): ${os.suffix}</echo>
230 <echo level="info">Operating System Script format (os.script.format): ${os.script.format}</echo>
231 <echo level="info">Operating System Shell (os.shell): ${os.shell}</echo>
232 <!--
233 <echo level="info">Current Date</echo>
234 <echo level="info">ar: ${month.ar} ${current.year}</echo>
235 <echo level="info">ca: ${month.el} ${current.year}</echo>
236 <echo level="info">el: ${month.el} ${current.year}</echo>
237 <echo level="info">es: ${month.es} ${current.year}</echo>
238 <echo level="info">fr: ${month.fr} ${current.year}</echo>
239 <echo level="info">lv: ${month.lv} ${current.year}</echo>
240 <echo level="info">mr: ${month.mr} ${current.year}</echo>
241 <echo level="info">ro: ${month.ro} ${current.year}</echo>
242 <echo level="info">ru: ${month.ru} ${current.year}</echo>
243 <echo level="info">vi: ${month.vi} ${current.year}</echo>
244 <echo level="info">zh: ${month.zh} ${current.year}</echo>
245 <echo level="info">default: (${month.default} ${current.year})</echo>
246 -->
247 </target>
248
249 <!-- show the core properties of all release-kits -->
250 <target name="core-properties">
251 <echo>version (required) the version string for the release</echo>
252 <echo>branch.path (optional) the branch of Greenstone to make a release of. Eg: tags/2.81. Default: trunk.</echo>
253 <echo>branch.revision (optional) the revision of Greenstone to make a release of. Eg: 18273. Default: HEAD.</echo>
254 </target>
255
256 <!-- a target to strip any directory of .svn folders -->
257 <target name="strip-svn-dirs" unless="${keep.src}">
258 <delete includeemptydirs="true">
259 <fileset dir="${dir}" defaultexcludes="false">
260 <include name="**/.svn/**" />
261 <include name="**/.svn/" />
262 <include name=".svn/**" />
263 <include name=".svn/" />
264 </fileset>
265 </delete>
266 </target>
267
268 <!-- target to insert the uninstaller into 'compiled' and compile it -->
269 <target name="insert-and-compile-uninstaller">
270
271 <!-- create working build directory -->
272 <mkdir dir="compiled/uninstaller/build/resources" />
273 <mkdir dir="compiled/uninstall"/>
274
275 <!-- copile to build -->
276 <javac includeantruntime="false"
277 srcdir="${rk.home}/shared/core/uninstaller"
278 destdir="compiled/uninstaller/build" >
279 <compilerarg line="${compile.javac.flags}"/>
280 </javac>
281
282 <!-- copy language bundle into place -->
283 <native2ascii
284 implementation="default"
285 src="${rk.home}/shared/core/language-strings"
286 dest="compiled/uninstaller/build/resources"/>
287
288 <!-- jar it all up -->
289 <jar destfile="compiled/uninstall/uninst.jar"
290 manifest="${rk.home}/shared/core/uninstaller/manifest.mf"
291 basedir="compiled/uninstaller/build" />
292
293 <!-- clean up build directory -->
294 <delete dir="compiled/uninstaller"/>
295
296 <!-- put the associated script in place -->
297 <copy file="${rk.home}/shared/core/uninstaller/Uninstall.${os.script.format}" todir="compiled/uninstall"/>
298
299 </target>
300
301 <!-- target to set all the version numbers in a greenstone2 or gs2build directory -->
302 <target name="gsdl-set-version-numbers">
303
304 <if><bool><available file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h"/></bool>
305 <rsr file="${gsdl.basedir}/common-src/src/lib/gsdlconf.h" pattern="(#define GSDL_VERSION) &quot;.*&quot;" replacement="$1 &quot;${version}${version-extra}&quot;" />
306 </if>
307
308 <if><bool><available file="${gsdl.basedir}/etc/VERSION"/></bool>
309 <rsr file="${gsdl.basedir}/etc/VERSION" pattern="(gsdl version: ).*" replacement="$1${version}${version-extra}" />
310 </if>
311
312 <if><bool><available file="${gsdl.basedir}/lib/java/server.properties"/></bool>
313 <rsr file="${gsdl.basedir}/lib/java/server.properties" pattern="^(Server2Control.Version[:=]).*" replacement="$1${version}${version-extra}" />
314 </if>
315
316 <if><bool><available file="${gsdl.basedir}/lib/java/log4j.properties.in"/></bool>
317 <rsr file="${gsdl.basedir}/lib/java/log4j.properties.in" pattern="^(log4j.category.org.greenstone.server[:=].*)INFO(.*)" replacement="$1WARN$2" />
318 </if>
319
320 <antcall target="gsdl-set-dates-in-readmes"><param name="gsdl.basedir" value="${gsdl.basedir}"/></antcall>
321
322 </target>
323
324 <!-- target to set dates in readme files -->
325 <target name="gsdl-set-dates-in-readmes">
326
327 <!-- en -->
328 <if><bool><available file="${gsdl.basedir}/READMEen.txt"/></bool>
329 <rsr file="${gsdl.basedir}/READMEen.txt">
330 <job pattern="^(Date\s*)(.*)" replacement="$1${month.default} ${current.year}" />
331 <job pattern="^(Version\s*)(.*)" replacement="$1${version}${version-extra}" />
332 </rsr>
333 </if>
334
335 <!-- ar -->
336 <if><bool><available file="${gsdl.basedir}/READMEar.txt"/></bool>
337 <rsr file="${gsdl.basedir}/READMEar.txt">
338 <job pattern="(التاريخ : \s*)(.*)" replacement="$1${month.ar} ${current.year}"/>
339 <job pattern="(النسخه : \s*)(.*)" replacement="$1${version}${version-extra}"/>
340 </rsr>
341 </if>
342
343 <!-- es -->
344 <if><bool><available file="${gsdl.basedir}/READMEes.txt"/></bool>
345 <rsr file="${gsdl.basedir}/READMEes.txt">
346 <job pattern="^(Fecha\s*)(.*)" replacement="$1${month.es} de ${current.year}"/>
347 <job pattern="^(Versi.?n\s*)(.*)" replacement="$1${version}${version-extra}"/>
348 </rsr>
349 </if>
350
351 <!-- fr -->
352 <if><bool><available file="${gsdl.basedir}/READMEfr.txt"/></bool>
353 <rsr file="${gsdl.basedir}/READMEfr.txt">
354 <job pattern="^(Date\s*)(.*)" replacement="$1${month.fr} ${current.year}"/>
355 <job pattern="^(Version\s*)(.*)" replacement="$1${version}${version-extra}"/>
356 </rsr>
357 </if>
358
359 <!-- ru -->
360 <if><bool><available file="${gsdl.basedir}/READMEru.txt"/></bool>
361 <rsr file="${gsdl.basedir}/READMEru.txt">
362 <job pattern="^(Дата\s*)(.*)" replacement="$1${month.ru} ${current.year}"/>
363 <job pattern="^(ВерсОя\s*)(.*)" replacement="$1${version}${version-extra}"/>
364 </rsr>
365 </if>
366
367 </target>
368
369 <!-- target to set version numbers in gli -->
370 <target name="gli-set-version-numbers">
371 <if><bool><not><equals arg1="${with.gli.and.gems}" arg2="false"/></not></bool>
372 <!-- DICTIOANRY FILES (AboutDialog.Date) -->
373 <echo level="info">Changing AboutDialog.Date in all dictionaries</echo>
374
375 <rsr file="${glibasedir}/classes/dictionary_ar.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ar} ${current.year})" />
376 <rsr file="${glibasedir}/classes/dictionary_ca.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ca} de ${current.year})" />
377 <rsr file="${glibasedir}/classes/dictionary_el.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.el} ${current.year})" />
378 <rsr file="${glibasedir}/classes/dictionary_es.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.es} ${current.year})" />
379 <rsr file="${glibasedir}/classes/dictionary_fr.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.fr} ${current.year})" />
380 <rsr file="${glibasedir}/classes/dictionary_lv.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.lv} ${current.year})" />
381 <rsr file="${glibasedir}/classes/dictionary_mr.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.mr} ${current.year})" />
382 <rsr file="${glibasedir}/classes/dictionary_ro.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ro} ${current.year})" />
383 <rsr file="${glibasedir}/classes/dictionary_ru.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.ru} ${current.year})" />
384 <rsr file="${glibasedir}/classes/dictionary_vi.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.vi} ${current.year})" />
385 <rsr file="${glibasedir}/classes/dictionary_zh.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.zh} ${current.year})" />
386 <rsr file="${glibasedir}/classes/dictionary.properties" pattern="AboutDialog.Date:.*" replacement="AboutDialog.Date:(${month.default} ${current.year})" />
387
388 <!-- GLI GATHERER -->
389 <echo level="info">Changing version number in gli Gatherer</echo>
390 <rsr file="${glibasedir}/src/org/greenstone/gatherer/Gatherer.java" pattern="^(.*)String\s*PROGRAM_VERSION\s*=\s*&quot;(.*)&quot;" replacement="$1String PROGRAM_VERSION = &quot;${version}${version-extra}&quot;"/>
391
392 <!-- CONFIG XML FILES -->
393 <echo level="info">Changing configuration version in classes/xml/config.xml</echo>
394 <rsr file="${glibasedir}/classes/xml/config.xml" pattern="^(\s*&lt;Configuration.* version=&quot;)[^&quot;]*(&quot;.*&gt;)" replacement="$1${version}${version-extra}$2"/>
395
396 <echo level="info">Changing configuration version in gli/classes/xml/configRemote.xml</echo>
397 <rsr file="${glibasedir}/classes/xml/configRemote.xml" pattern="^(\s*&lt;Configuration.* version=&quot;)[^&quot;]*(&quot;.*&gt;)" replacement="$1${version}${version-extra}$2"/>
398 </if>
399 </target>
400
401 <!-- target to tidy gli up for distribution -->
402 <target name="gli-tidy-for-dist" unless="${keep.src}">
403 <!-- delete unneeded things -->
404 <delete file="${glibasedir}/.greenstonestore"/>
405 <delete dir="${glibasedir}/classes/META-INF"/>
406 <delete dir="${glibasedir}/classes/org"/>
407 <delete dir="${glibasedir}/classes/images"/>
408 <delete dir="${glibasedir}/jar"/>
409 </target>
410
411
412 <!-- target to archive and compress a given component -->
413 <target name="create-component">
414 <mkdir dir="components"/>
415
416 <!-- the PatternSet To File task takes one or more patternsets and outputs to a file all of the files it includes -->
417 <pstf dir="compiled" outfile="compiled/uninstall/${component}.uninstall" toplevelonly="true">
418 <patternset refid="greenstone${version.major}.${component}${ext-x64}.component"/>
419 </pstf>
420
421 <zip destfile="components/${component}.comp" compress="false">
422 <zipfileset dir="compiled">
423 <patternset refid="greenstone${version.major}.${component}${ext-x64}.component"/>
424 </zipfileset>
425 </zip>
426
427 <!-- windows -->
428 <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
429 <exec executable="${rk.home}/shared/windows/7za/7za.exe" dir="components"><arg line="a -t7z -mx=9 ${component}.lzma ${component}.comp"/></exec>
430
431 <!-- linux, mac -->
432 <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
433 <sevenzip task="encode" input="components/${component}.comp" output="components/${component}.lzma" dictionnary="26"/>
434
435 <!-- else warn -->
436 <else>
437 <fail>this target does not support this os (was a new release-kit os added?)</fail>
438
439 </else></if></else></if>
440 </target>
441
442</project>
Note: See TracBrowser for help on using the repository browser.