[15023] | 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 |
|
---|
[15025] | 34 | <echo>Compiling the launcher</echo>
|
---|
[15023] | 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 |
|
---|
[15053] | 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"/>
|
---|
[15023] | 43 | </if>
|
---|
| 44 | </target>
|
---|
[15025] | 45 |
|
---|
[15023] | 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>
|
---|