1 | <?xml version="1.0" encoding="utf-8" ?> |
---|
2 | <!-- |
---|
3 | .......................................................... |
---|
4 | August 2008 |
---|
5 | Targets for Greenstone3 release kits |
---|
6 | Oran Fry |
---|
7 | .......................................................... |
---|
8 | --> |
---|
9 | |
---|
10 | <project name="rk3-targets"> |
---|
11 | |
---|
12 | <property name="version.major" value="3"/> |
---|
13 | |
---|
14 | <target name="compile-uninstaller"> |
---|
15 | <echo>Compiling Uninstaller</echo> |
---|
16 | |
---|
17 | <!-- create working build directory --> |
---|
18 | <mkdir dir="${basedir}/greenstone3/uninstaller/build/resources" /> |
---|
19 | |
---|
20 | <!-- copile to build --> |
---|
21 | <javac |
---|
22 | srcdir="${rk.home}/uninstaller" |
---|
23 | destdir="${basedir}/greenstone3/uninstaller/build" /> |
---|
24 | |
---|
25 | <!-- copy language bundle into place --> |
---|
26 | <native2ascii |
---|
27 | implementation="sun" |
---|
28 | src="${rk.home}/language-strings" |
---|
29 | dest="${basedir}/greenstone3/uninstaller/build/resources"/> |
---|
30 | |
---|
31 | <!-- jar it all up --> |
---|
32 | <jar |
---|
33 | destfile="${basedir}/greenstone3/uninstaller/uninst.jar" |
---|
34 | manifest="${rk.home}/uninstaller/manifest.mf" |
---|
35 | basedir="${basedir}/greenstone3/uninstaller/build" /> |
---|
36 | |
---|
37 | </target> |
---|
38 | |
---|
39 | <target name="insert-uninstaller"> |
---|
40 | <copy file="greenstone3/uninstaller/uninst.jar" todir="distribution/greenstone3" /> |
---|
41 | <copy file="${rk.home}/uninstaller/Uninstall.${script-format}" todir="distribution/greenstone3" /> |
---|
42 | </target> |
---|
43 | |
---|
44 | <target name="greenstone3-set-version-numbers"> |
---|
45 | <rsr |
---|
46 | file="${greenstone3basedir}/resources/java/global.properties.in" |
---|
47 | pattern="@gsdl3version@" |
---|
48 | replacement="${version}" /> |
---|
49 | </target> |
---|
50 | |
---|
51 | <target name="copy-web-to-source-greenstone3"> |
---|
52 | <copy todir="distribution/source"><fileset dir="distribution/greenstone3"/></copy> |
---|
53 | </target> |
---|
54 | |
---|
55 | |
---|
56 | <!-- sourcecode-release --> |
---|
57 | <target name="prepare-source-release"> |
---|
58 | <delete dir="components/tmp/source-release"/> |
---|
59 | <mkdir dir="components/tmp/source-release"/> |
---|
60 | |
---|
61 | <copy todir="components/tmp/source-release" overwrite="true"> |
---|
62 | <fileset dir="distribution/source"/> |
---|
63 | </copy> |
---|
64 | <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false"/> |
---|
65 | </target> |
---|
66 | |
---|
67 | |
---|
68 | </project> |
---|