1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk3-create-installer" default="create-installer">
|
---|
3 |
|
---|
4 | <target name="create-installer">
|
---|
5 | <antcall target="calculate-component-sizes"/> <!-- from rk3-targets -->
|
---|
6 | <antcall target="copy-installer-files"/>
|
---|
7 | <antcall target="make-installer-files-concrete"/> <!-- from rk3-targets -->
|
---|
8 | <antcall target="compile-installer"/>
|
---|
9 | </target>
|
---|
10 |
|
---|
11 | <target name="copy-installer-files">
|
---|
12 |
|
---|
13 | <echo>Project Path: ${basedir}/distribution/greenstone3</echo>
|
---|
14 |
|
---|
15 | <echo>Getting things ready to compile the installer</echo>
|
---|
16 | <mkdir dir="${basedir}/installer/resources"/>
|
---|
17 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" overwrite="true" />
|
---|
18 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" overwrite="true" />
|
---|
19 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
20 | <fileset dir="${lirk3.home}/greenstone3/installer-classes"/>
|
---|
21 | <fileset dir="${lirk3.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
|
---|
22 | </copy>
|
---|
23 |
|
---|
24 | <echo>component.size.core: ${component.size.core}</echo>
|
---|
25 | <echo>component.size.sourcecode: ${component.size.sourcecode}</echo>
|
---|
26 | <echo>component.size.tomcat: ${component.size.tomcat}</echo>
|
---|
27 | <echo>component.size.ant: ${component.size.ant}</echo>
|
---|
28 |
|
---|
29 | <if>
|
---|
30 | <bool><equals arg1="windows" arg2="${rk.os}"/></bool>
|
---|
31 | <echo>component.size.windows-java: ${component.size.windows-java}</echo>
|
---|
32 |
|
---|
33 | <else><if>
|
---|
34 | <bool><equals arg1="linux" arg2="${rk.os}"/></bool>
|
---|
35 | <echo>component.size.linux-java: ${component.size.linux-java}</echo>
|
---|
36 | </if>
|
---|
37 |
|
---|
38 | </else>
|
---|
39 |
|
---|
40 | </if>
|
---|
41 |
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="compile-installer">
|
---|
45 | <installer file="${basedir}/installer/greenstone3-with-java.jar"
|
---|
46 | compress="true"
|
---|
47 | extractType="NonExtractor"
|
---|
48 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
49 | buildFile="${basedir}/installer/build.xml"
|
---|
50 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
51 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
52 | validateConfig="true"
|
---|
53 | failOnError="false"
|
---|
54 | icons="bluecurve">
|
---|
55 |
|
---|
56 | <!-- copy all the important files into the archive to be extracted for install -->
|
---|
57 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" /> <!-- installer classes -->
|
---|
58 | <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
|
---|
59 |
|
---|
60 | </installer>
|
---|
61 |
|
---|
62 | <!-- delete the 'bundled java only' lines from the installer config -->
|
---|
63 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*<!-- bundled java only -->" replacement=""/>
|
---|
64 |
|
---|
65 | <installer file="${basedir}/installer/greenstone3.jar"
|
---|
66 | compress="true"
|
---|
67 | extractType="NonExtractor"
|
---|
68 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
69 | buildFile="${basedir}/installer/build.xml"
|
---|
70 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
71 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
72 | validateConfig="true"
|
---|
73 | icons="bluecurve">
|
---|
74 |
|
---|
75 | <zipfileset dir="${basedir}/installer/classes" includes="**/*"/>
|
---|
76 | <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
|
---|
77 | </installer>
|
---|
78 | </target>
|
---|
79 |
|
---|
80 | </project>
|
---|