[16682] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <!--
|
---|
[16803] | 3 | ..........................................................
|
---|
| 4 | August 2008
|
---|
[16682] | 5 | Targets for Greenstone3 release kits
|
---|
| 6 | Oran Fry
|
---|
| 7 | ..........................................................
|
---|
| 8 | -->
|
---|
| 9 |
|
---|
[21630] | 10 | <project name="greenstone3-targets">
|
---|
[16682] | 11 |
|
---|
[21658] | 12 | <property name="version.major" value="3"/>
|
---|
[19408] | 13 | <target name="gs3-init">
|
---|
[19662] | 14 |
|
---|
[19935] | 15 | <!-- don't let greenstone3 block and wait for user input to accept
|
---|
| 16 | the properties for the build -->
|
---|
| 17 | <property name="forward.properties.accepted" value="true"/>
|
---|
[19662] | 18 |
|
---|
[20115] | 19 | <!-- make sure all c++ compilation is done statically on linux -->
|
---|
[20116] | 20 | <if><bool><equals arg1="${rk.os}" arg2="linux"/></bool>
|
---|
[20115] | 21 | <property name="forward.compile.static" value="true"/>
|
---|
| 22 | </if>
|
---|
[19662] | 23 |
|
---|
[19935] | 24 | <!-- show the property set to be forwarded to greenstone3 -->
|
---|
| 25 | <echo>Properties to be forwarded to greenstone3 build</echo>
|
---|
| 26 | <echoproperties><propertyset refid="forward.properties"/></echoproperties>
|
---|
| 27 |
|
---|
[19715] | 28 | </target>
|
---|
| 29 |
|
---|
[21652] | 30 | <target name="gs3-properties">
|
---|
| 31 | <echo>forward.* (eg, forward.proxy.host) (optional) any property to forward to greenstone3 during build</echo>
|
---|
| 32 | </target>
|
---|
| 33 |
|
---|
[21630] | 34 | <target name="greenstone3-set-version-numbers">
|
---|
| 35 | <rsr
|
---|
| 36 | file="${greenstone3basedir}/resources/java/global.properties.in"
|
---|
| 37 | pattern="@gsdl3version@"
|
---|
| 38 | replacement="${version}" />
|
---|
| 39 | <rsr
|
---|
| 40 | file="${greenstone3basedir}/resources/java/server.properties"
|
---|
| 41 | pattern="^(Server3Control\.Version=).*$"
|
---|
| 42 | replacement="$1${version}" />
|
---|
| 43 |
|
---|
[19715] | 44 | </target>
|
---|
[19935] | 45 |
|
---|
| 46 | <!--
|
---|
[21636] | 47 | unused. might need to find a way to get the system ant into the release, as ant no longer comes with the release kits
|
---|
[19935] | 48 | -->
|
---|
| 49 | <target name="insert-ant">
|
---|
| 50 |
|
---|
| 51 | <!-- remove any existing ant -->
|
---|
| 52 | <delete dir="compiled/packages/ant"/>
|
---|
| 53 |
|
---|
| 54 | <!-- windows copy -->
|
---|
| 55 | <if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
|
---|
| 56 | <copy todir="compiled/packages">
|
---|
| 57 | <fileset dir="${rk.home}/core" includes="ant/**/*"/>
|
---|
| 58 | </copy>
|
---|
| 59 |
|
---|
| 60 | <!-- linux, mac copy-->
|
---|
| 61 | <else><if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
|
---|
| 62 | <exec executable="cp">
|
---|
[21630] | 63 | <arg value="-r"/>
|
---|
[19935] | 64 | <arg value="${rk.home}/core/ant"/>
|
---|
| 65 | <arg value="compiled/packages"/>
|
---|
| 66 | </exec>
|
---|
| 67 |
|
---|
| 68 | <!-- otherwise fail -->
|
---|
| 69 | <else>
|
---|
| 70 | <fail>this target does not support the current os</fail>
|
---|
| 71 |
|
---|
| 72 | </else></if></else></if>
|
---|
| 73 |
|
---|
| 74 | </target>
|
---|
[19662] | 75 |
|
---|
[21636] | 76 | <!-- unused. this or something similar might need to go back in, to make the forward.properties permanent -->
|
---|
[19662] | 77 | <target name="generate-build-properties">
|
---|
| 78 | <copy file="${greenstone3.basedir}/build.properties.in" tofile="${greenstone3.basedir}/build.properties"/>
|
---|
| 79 | <if><bool><istrue value="${install.flax}"/></bool>
|
---|
| 80 | <rsr file="${greenstone3.basedir}/build.properties" pattern="^#install.flax\s*[=:].*" replacement="install.flax=true"/>
|
---|
| 81 | </if>
|
---|
[19666] | 82 | <if><bool><isset property="server.default.servlet"/></bool>
|
---|
| 83 | <rsr file="${greenstone3.basedir}/build.properties" pattern="^#?server.default.servlet\s*[=:].*" replacement="server.default.servlet=${server.default.servlet}"/>
|
---|
[19662] | 84 | </if>
|
---|
[19408] | 85 | </target>
|
---|
[19463] | 86 |
|
---|
[16682] | 87 | </project>
|
---|