root/release-kits/mark3/ant-scripts/create-distribution.xml @ 17268

Revision 17268, 3.3 KB (checked in by oranfry, 11 years ago)

compile search4j in release process and started standardising java installtion

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="mark3-create-distribution" default="create-distribution">
3
4    <target name="create-distribution">
5        <!-- create distribution -->
6        <antcall target="export-greenstone3" />
7        <antcall target="dist-set-version-number-property" />
8        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli"/></antcall>
9
10        <ant target="create-distribution-1" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
11            <property name="app.version" value="${version}"/>
12            <property name="branch.path" value="${branch.path}"/>
13        </ant>
14
15        <ant target="create-distribution-2" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
16            <property name="app.version" value="${version}"/>
17            <property name="branch.path" value="${branch.path}"/>
18        </ant>
19
20        <ant target="create-distribution-3" antfile="${mark3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
21            <property name="app.version" value="${version}"/>
22            <property name="branch.path" value="${branch.path}"/>
23        </ant>
24
25        <antcall target="copy-over-build-xml" />
26        <antcall target="insert-user-manual"/>
27        <antcall target="insert-compiled-binaries"/>
28        <antcall target="insert-uninstaller"/> <!-- from rk3-targets -->
29        <antcall target="rename-build-xml-for-transit"/>
30    </target>
31
32    <target name="export-greenstone3">
33        <mkdir dir="distribution"/>
34        <delete dir="distribution/greenstone3"/>
35        <svn javahl="false">
36            <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3"/>
37            <export srcurl="${svn.root}/gli/${branch.path}" destPath="distribution/greenstone3/gli"/>
38        </svn>
39    </target>
40
41    <target name="dist-set-version-number-property">
42        <rsr
43            file="distribution/greenstone3/resources/java/global.properties.in"
44            pattern="(.*)@gsdl3version@(.*)"
45            replacement="$1${version}$2" />
46    </target>
47
48    <target name="copy-over-build-xml">
49        <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
50    </target>
51
52    <target name="insert-user-manual">
53        <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
54    </target>
55
56    <target name="insert-compiled-binaries">
57        <delete dir="distribution/greenstone3/lib/jni"/>
58        <exec executable="cp"><arg line="-r greenstone3/lib/jni distribution/greenstone3/lib"/></exec>
59
60        <delete dir="distribution/greenstone3/gs2build/bin/darwin"/>
61        <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/darwin distribution/greenstone3/gs2build/bin"/></exec>
62        <exec dir="${basedir}" executable="cp"><arg line="greenstone3/bin/search4j distribution/greenstone3/bin"/></exec>
63
64        <delete dir="distribution/greenstone3/gs2build/bin/java"/>
65        <exec executable="cp"><arg line="-r greenstone3/gs2build/bin/java distribution/greenstone3/gs2build/bin"/></exec>
66        <exec executable="cp"><arg line="greenstone3/bin/search4j distribution/greenstone3/bin"/></exec>
67    </target>
68
69    <target name="rename-build-xml-for-transit">
70        <move file="distribution/greenstone3/build.xml" tofile="distribution/greenstone3/greenstone3-build.xml"/>
71    </target>
72
73
74</project>
Note: See TracBrowser for help on using the browser.