source: release-kits/wirk3/ant-scripts/create-distribution.xml@ 16813

Last change on this file since 16813 was 16813, checked in by oranfry, 16 years ago

changing the order of targets to prevent file not found problems

File size: 3.1 KB
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 <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
8 <property name="app.version" value="${version}"/>
9 <property name="branch.path" value="${branch.path}"/>
10 <property name="branch.revision" value="${branch.revision}"/>
11 </ant>
12 <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
13 <property name="app.version" value="${version}"/>
14 <property name="branch.path" value="${branch.path}"/>
15 <property name="branch.revision" value="${branch.revision}"/>
16 </ant>
17 <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distribution/greenstone3" inheritAll="false">
18 <property name="app.version" value="${version}"/>
19 <property name="branch.path" value="${branch.path}"/>
20 <property name="branch.revision" value="${branch.revision}"/>
21 </ant>
22 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distribution/greenstone3/gli" /></antcall>
23 <antcall target="copy-over-build-xml" />
24 <antcall target="insert-user-manual"/>
25 <antcall target="insert-compiled-binaries"/>
26 <antcall target="rename-build-xml-for-transit"/>
27 </target>
28
29 <target name="export-greenstone3">
30 <mkdir dir="distribution"/>
31 <delete dir="distribution/greenstone3"/>
32 <svn>
33 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/>
34 </svn>
35 </target>
36
37 <target name="dist-set-version-number-property">
38 <rsr
39 file="distribution/greenstone3/resources/java/global.properties.in"
40 pattern="(.*)@gsdl3version@(.*)"
41 replacement="$1${version}$2" />
42 </target>
43
44 <target name="copy-over-build-xml">
45 <if><bool><istrue value="${execute}"/></bool>
46 <move file="distribution/greenstone3/modified-build.xml" tofile="distribution/greenstone3/build.xml"/>
47 </if>
48 </target>
49
50 <target name="insert-user-manual">
51 <copy file="greenstone3/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distribution/greenstone3/docs/manual/gs2_user_en.pdf"/>
52 </target>
53
54 <target name="insert-compiled-binaries">
55 <delete dir="distribution/greenstone3/lib/jni"/>
56 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy>
57
58 <delete dir="distribution/greenstone3/gs2build/bin/windows"/>
59 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy>
60
61 <delete dir="distribution/greenstone3/gs2build/bin/java"/>
62 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy>
63 </target>
64
65 <target name="rename-build-xml-for-transit">
66 <move
67 file="distribution/greenstone3/build.xml"
68 tofile="distribution/greenstone3/greenstone3-build.xml" />
69 </target>
70
71</project>
Note: See TracBrowser for help on using the repository browser.