source: release-kits/lirk3/ant-scripts/create-distribution.xml@ 16684

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

getting rid of unneeded if wrappers to each target as hacked ant now takes care of that, and replacing calls to custom task addressed calls to builtin antcall, which has been hacked in ant

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