source: release-kits/wirk3/ant-scripts/create-launcher.xml@ 15092

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

lots of work on wirk3

File size: 1.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4 ..........................................................
5 September 2007
6 Greenstone3 'release maker' script
7 Oran Fry
8 ..........................................................
9-->
10
11<project name="wirk3-create-launcher" default="wrap">
12
13 <target name="create-launcher">
14 <addressedcall target="setup-for-launcher-creation"/>
15 <addressedcall target="compile-launcher"/>
16 <addressedcall target="clean-up-after-launcher-creation"/>
17 </target>
18
19
20 <target name="setup-for-launcher-creation">
21 <if><bool><istrue value="${execute}"/></bool>
22
23 <mkdir dir="${basedir}/launcher"/>
24 <copy todir="${basedir}/launcher" file="${wirk3.home}/launcher/launcher.xml"/>
25 <!--<rsr pattern="(.*)@version@(.*)" replacement="$1${version}$2" file="${basedir}/launcher/launcher.xml" />-->
26 <rsr pattern="(.*)@basedir@(.*)" replacement="$1${basedir}$2" file="${basedir}/launcher/launcher.xml" />
27
28 </if>
29 </target>
30
31 <target name="compile-launcher">
32 <if><bool><istrue value="${execute}"/></bool>
33
34 <echo>Compiling the launcher</echo>
35 <!--<exec executable="cmd " dir="${basedir}/launcher/launcher.xml">
36 <arg line="/C ${wirk3.home}/bin/launch4j/launch4j.exe launcher.xml"/>
37 </exec>-->
38
39 <launch4j configFile="${basedir}/launcher/launcher.xml" />
40
41 <echo>Putting a copy of the launcher in winutil</echo>
42 <copy file="${basedir}/launcher/launch-installer.exe" tofile="${basedir}/distribution/greenstone3/winutil/launcher.exe" overwrite="true"/>
43 </if>
44 </target>
45
46 <target name="clean-up-after-launcher-creation">
47 <if><bool><istrue value="${execute}"/></bool>
48 <delete file="${basedir}/launcher/launcher.xml"/>
49 </if>
50 </target>
51
52
53</project>
Note: See TracBrowser for help on using the repository browser.