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

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

make sure the uninstaller jar file makes it into the dist for greenstone3 distributions

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