root/release-kits/wirk3/ant-scripts/create-distribution.xml @ 16748

Revision 16748, 3.1 KB (checked in by oranfry, 11 years ago)

changes to wirk3 after ant cleaned up

Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-create-distribution" default="create-distribution">
3
4    <target name="create-distribution">
5        <!-- create distribution -->
6        <antcall target="export-greenstone3" />
7        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" />
8
9        <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
10            <property name="app.version" value="${version}"/>
11            <property name="branch.path" value="${branch.path}"/>
12            <property name="branch.revision" value="${branch.revision}"/>
13        </ant>
14        <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
15            <property name="app.version" value="${version}"/>
16            <property name="branch.path" value="${branch.path}"/>
17            <property name="branch.revision" value="${branch.revision}"/>
18        </ant>
19        <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
20            <property name="app.version" value="${version}"/>
21            <property name="branch.path" value="${branch.path}"/>
22            <property name="branch.revision" value="${branch.revision}"/>
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="rename-build-xml-for-transit"/>
29    </target>
30
31    <target name="export-greenstone3">
32        <mkdir dir="distribution"/>
33        <delete dir="distribution/greenstone3"/>
34        <svn>
35            <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
36        </svn>
37    </target>
38
39    <target name="dist-set-version-number-property">
40        <rsr
41            file="distribution/greenstone3/resources/java/global.properties.in"
42            pattern="(.*)@gsdl3version@(.*)"
43            replacement="$1${version}$2" />
44    </target>
45
46    <target name="copy-over-build-xml">
47        <if><bool><istrue value="${execute}"/></bool>
48            <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
49        </if>
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        <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
59       
60        <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
61        <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
62       
63        <delete dir="distribution/greenstone3/gs2build/bin/java"/>
64        <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
65    </target>
66
67    <target name="rename-build-xml-for-transit">
68        <move
69            file="distribution/greenstone3/build.xml"
70            tofile="distribution/greenstone3/greenstone3-build.xml" />
71    </target>
72
73</project>
Note: See TracBrowser for help on using the browser.