1 | <?xml version="1.0" encoding="utf-8" ?> |
---|
2 | <!-- |
---|
3 | ..........................................................
|
---|
4 | August 2008
|
---|
5 | Targets for Greenstone2 release kits |
---|
6 | Oran Fry |
---|
7 | .......................................................... |
---|
8 | --> |
---|
9 | |
---|
10 | <project name="rk2-targets"> |
---|
11 | |
---|
12 | <property name="version.major" value="2"/> |
---|
13 | |
---|
14 | <target name="compile-uninstaller"> |
---|
15 | <echo>Compiling Uninstaller</echo> |
---|
16 | |
---|
17 | <!-- create working build directory --> |
---|
18 | <mkdir dir="${basedir}/gsdl/uninstaller/build/resources" /> |
---|
19 | |
---|
20 | <!-- copile to build --> |
---|
21 | <javac |
---|
22 | srcdir="${rk.home}/uninstaller" |
---|
23 | destdir="${basedir}/gsdl/uninstaller/build" /> |
---|
24 | |
---|
25 | <!-- copy language bundle into place --> |
---|
26 | <native2ascii |
---|
27 | implementation="sun" |
---|
28 | src="${rk.home}/language-strings" |
---|
29 | dest="${basedir}/gsdl/uninstaller/build/resources"/> |
---|
30 | |
---|
31 | <!-- jar it all up --> |
---|
32 | <jar |
---|
33 | destfile="${basedir}/gsdl/uninstaller/uninst.jar" |
---|
34 | manifest="${rk.home}/uninstaller/manifest.mf" |
---|
35 | basedir="${basedir}/gsdl/uninstaller/build" /> |
---|
36 | |
---|
37 | </target> |
---|
38 | |
---|
39 | <target name="insert-uninstaller"> |
---|
40 | <copy file="gsdl/uninstaller/uninst.jar" todir="distributions/web" /> |
---|
41 | <copy file="${rk.home}/uninstaller/Uninstall.${script-format}" todir="distributions/web" /> |
---|
42 | </target> |
---|
43 | |
---|
44 | <target name="insert-export-to-cd-package"> |
---|
45 | <mkdir dir="distributions/web/bin/windows"/> |
---|
46 | <get src="http://greenstone.org/release-snapshots/server.exe" dest="${basedir}/distributions/web/bin/windows/server.exe"/> |
---|
47 | <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/Setup.exe" dest="${basedir}/distributions/web/bin/windows/Setup.exe"/> |
---|
48 | <get src="http://svn.greenstone.org/other-projects/trunk/winbin/bin/gssetup.exe" dest="${basedir}/distributions/web/bin/windows/gssetup.exe"/> |
---|
49 | </target> |
---|
50 | |
---|
51 | <!-- source-release --> |
---|
52 | <target name="prepare-source-release"> |
---|
53 | <delete dir="components/tmp/source-release"/> |
---|
54 | <mkdir dir="components/tmp/source-release"/> |
---|
55 | |
---|
56 | <copy todir="components/tmp/source-release" overwrite="true"> |
---|
57 | <fileset dir="distributions/source"/> |
---|
58 | </copy> |
---|
59 | <zip destfile="components/source-release.comp" basedir="components/tmp/source-release" compress="false" includes="**/*"/> |
---|
60 | </target> |
---|
61 | |
---|
62 | |
---|
63 | </project> |
---|