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

Last change on this file since 19475 was 19475, checked in by oranfry, 15 years ago

got the release kit to work under java 1.5

File size: 3.4 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
6 <!-- create distribution -->
7 <antcall target="export-greenstone3-gli" />
8 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web" /></antcall>
9 <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli" /></antcall>
10 <antcall target="insert-user-manual"/>
11 <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from init -->
12 <antcall target="insert-uninstaller-jar"/> <!-- from rk3-targets -->
13
14 <ant target="configure-java-version" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false"/>
15
16 <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
17 <property name="app.version" value="${version}"/>
18 <property name="branch.path" value="${branch.path}"/>
19 <property name="branch.revision" value="${branch.revision}"/>
20 </ant>
21
22 <antcall target="insert-icon"/>
23
24 <ant target="create-distribution-2" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
25 <property name="app.version" value="${version}"/>
26 <property name="branch.path" value="${branch.path}"/>
27 <property name="branch.revision" value="${branch.revision}"/>
28 </ant>
29 <ant target="create-distribution-3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false">
30 <property name="app.version" value="${version}"/>
31 <property name="branch.path" value="${branch.path}"/>
32 <property name="branch.revision" value="${branch.revision}"/>
33 </ant>
34 <antcall target="copy-over-build-xml" />
35 <antcall target="insert-compiled-binaries"/>
36
37 </target>
38
39 <target name="export-greenstone3-gli">
40 <mkdir dir="distributions"/>
41 <delete dir="distributions/web"/>
42 <svn>
43 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distributions/web" revision="${branch.revision}"/>
44 <export srcurl="${svn.root}/gli/${branch.path}" destPath="distributions/web/gli" revision="${branch.revision}"/>
45 </svn>
46 </target>
47
48 <target name="copy-over-build-xml">
49 <if><bool><istrue value="${execute}"/></bool>
50 <move file="distributions/web/modified-build.xml" tofile="distributions/web/build.xml"/>
51 </if>
52 </target>
53
54 <target name="insert-user-manual">
55 <copy file="compiled/gsdl-manuals/manuals/build/en/pdf/User_en.pdf" tofile="distributions/web/docs/manual/gs2_user_en.pdf"/>
56 </target>
57
58 <target name="insert-compiled-binaries">
59
60 <delete dir="distributions/web/lib/jni"/>
61 <copy todir="distributions/web/lib/jni"><fileset dir="compiled/lib/jni"/></copy>
62
63 <delete dir="distributions/web/gs2build/bin/windows"/>
64 <copy todir="distributions/web/gs2build/bin/windows"><fileset dir="compiled/gs2build/bin/windows"/></copy>
65
66 <delete dir="distributions/web/gs2build/bin/java"/>
67 <copy todir="distributions/web/gs2build/bin/java"><fileset dir="compiled/gs2build/bin/java"/></copy>
68
69 <copy todir="distributions/web/bin" file="compiled/bin/search4j.exe"/>
70 </target>
71
72 <target name="insert-icon">
73 <copy
74 file="${wirk3.home}/greenstone3/icon/icon.ico"
75 tofile="distributions/web/resources/images/gs3.ico"/>
76 </target>
77
78</project>
Note: See TracBrowser for help on using the repository browser.