1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk2-create-installer" default="create-installer">
|
---|
3 |
|
---|
4 | <target name="create-installer">
|
---|
5 | <antcall target="copy-installer-files"/>
|
---|
6 | <antcall target="make-installer-files-concrete"/> <!-- from rk2-targets -->
|
---|
7 | <antcall target="compile-installer"/>
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="copy-installer-files">
|
---|
11 | <echo>Copying installer files</echo>
|
---|
12 | <mkdir dir="${basedir}/installer/classes"/>
|
---|
13 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
|
---|
14 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/>
|
---|
15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
16 | <fileset dir="${lirk2.home}/greenstone2/installer-classes"/>
|
---|
17 | <fileset dir="${lirk2.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
|
---|
18 | </copy>
|
---|
19 | </target>
|
---|
20 |
|
---|
21 | <target name="compile-installer">
|
---|
22 | <!-- create the installer with java -->
|
---|
23 | <installer file="${basedir}/installer/greenstone-${version}-linux-with-java.jar"
|
---|
24 | compress="true"
|
---|
25 | extractType="NonExtractor"
|
---|
26 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
27 | buildFile="${basedir}/installer/build.xml"
|
---|
28 | antInstallLib="${lirk2.home}/packages/ant-installer/lib"
|
---|
29 | antLib="${lirk2.home}/packages/ant/lib"
|
---|
30 | validateConfig="true"
|
---|
31 | failOnError="false"
|
---|
32 | icons="bluecurve">
|
---|
33 |
|
---|
34 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
35 | <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
|
---|
36 |
|
---|
37 | </installer>
|
---|
38 |
|
---|
39 | <!-- delete the 'bundled java only' lines from the installer config -->
|
---|
40 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*<!-- bundled java only -->" replacement=""/>
|
---|
41 |
|
---|
42 | <!-- create the installer without java -->
|
---|
43 | <installer file="${basedir}/installer/greenstone-${version}-linux.jar"
|
---|
44 | compress="true"
|
---|
45 | extractType="NonExtractor"
|
---|
46 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
47 | buildFile="${basedir}/installer/build.xml"
|
---|
48 | antInstallLib="${lirk2.home}/packages/ant-installer/lib"
|
---|
49 | antLib="${lirk2.home}/packages/ant/lib"
|
---|
50 | validateConfig="true"
|
---|
51 | failOnError="false"
|
---|
52 | icons="bluecurve">
|
---|
53 |
|
---|
54 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
55 | <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
|
---|
56 |
|
---|
57 | </installer>
|
---|
58 |
|
---|
59 | </target>
|
---|
60 |
|
---|
61 | </project>
|
---|