source: release-kits/mark2/ant-scripts/create-installer.xml@ 16741

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

changes to mark2 after ant hack cleaned up

File size: 2.5 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark2-create-installer" default="create-installer">
3
4 <target name="create-installer">
5 <antcall target="setup-for-installer-creation"/>
6 <antcall target="compile-installer"/>
7 </target>
8
9 <target name="setup-for-installer-creation">
10 <echo>Getting things ready to compile the installer</echo>
11 <mkdir dir="${basedir}/installer/classes"/>
12 <copy todir="${basedir}/installer" file="${mark2.home}/installer/antinstall-config.xml" overwrite="true"/>
13 <copy todir="${basedir}/installer" file="${mark2.home}/installer/build.xml" overwrite="true"/>
14 <copy todir="${basedir}/installer/classes" overwrite="true">
15 <fileset dir="${mark2.home}/greenstone2/installer-classes"/>
16 <fileset dir="${mark2.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
17 </copy>
18
19 <!-- put the concrete values of things in the config -->
20 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
21 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.java@" replacement="${component.size.linux-java}"/>
22 <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/>
23 <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${linux-java.extracted}"/>
24
25 <!-- put the concrete values of things in the text -->
26 <!-- default -->
27 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
28 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
29 <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.linux-java}"/>
30 </target>
31
32 <target name="compile-installer">
33 <!-- create the installer without java -->
34 <installer file="${basedir}/installer/Greenstone-${version}-MacOS-${processor}.jar"
35 compress="true"
36 extractType="NonExtractor"
37 installConfig="${basedir}/installer/antinstall-config.xml"
38 buildFile="${basedir}/installer/build.xml"
39 antInstallLib="${mark2.home}/packages/ant-installer/lib"
40 antLib="${mark2.home}/packages/ant/lib"
41 validateConfig="true"
42 failOnError="false"
43 icons="bluecurve">
44
45 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
46 <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
47
48 </installer>
49 </target>
50
51</project>
Note: See TracBrowser for help on using the repository browser.