1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="rk3-create-installer">
|
---|
3 |
|
---|
4 | <target name="create-installer">
|
---|
5 | <antcall target="copy-installer-files"/>
|
---|
6 | <antcall target="make-installer-files-concrete"><param name="java.os" value="linux"/></antcall> <!-- from init -->
|
---|
7 | <antcall target="compile-binary-installer"/> <!-- from init -->
|
---|
8 | </target>
|
---|
9 |
|
---|
10 | <target name="copy-installer-files" depends="copy-main-installer-files">
|
---|
11 |
|
---|
12 | <!-- the installer descriptors -->
|
---|
13 | <copy todir="installer" file="${rk.home}/greenstone3/installer/antinstall-config.xml" overwrite="true"/>
|
---|
14 | <copy todir="installer" file="${rk.home}/greenstone3/installer/build.xml" overwrite="true"/>
|
---|
15 |
|
---|
16 | <!-- the licence -->
|
---|
17 | <copy file="${basedir}/distributions/web/LICENSE.txt" todir="${basedir}/installer/classes" overwrite="true"/>
|
---|
18 |
|
---|
19 | <!-- greenstone's ant tasks -->
|
---|
20 | <unjar src="${rk3.home}/core/ant-tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
21 |
|
---|
22 | <!-- windows only -->
|
---|
23 | <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
|
---|
24 | <!-- 7za.exe tool -->
|
---|
25 | <copy todir="${basedir}/installer/classes" overwrite="true" file="${rk3.home}/windows/7za/7za.exe"/>
|
---|
26 |
|
---|
27 | <!-- roxes and orangevolt for windows tricks in ant -->
|
---|
28 | <unjar src="${rk3.home}/core/ant-tasks/orangevolt/roxes-win32forjava-1.1.1.jar" dest="${basedir}/installer/classes"/>
|
---|
29 | <unjar src="${rk3.home}/core/ant-tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar" dest="${basedir}/installer/classes"/>
|
---|
30 |
|
---|
31 | <!-- linux and mac only -->
|
---|
32 | <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
|
---|
33 | <!-- 7zip ant task -->
|
---|
34 | <unjar src="${rk3.home}/core/ant-tasks/7z-ant/7z.jar" dest="${basedir}/installer/classes"/>
|
---|
35 |
|
---|
36 | </if></else></if>
|
---|
37 |
|
---|
38 | <!-- clean up meta directory -->
|
---|
39 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
40 |
|
---|
41 | </target>
|
---|
42 |
|
---|
43 | </project>
|
---|