[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-installer" default="create-installer">
|
---|
| 12 |
|
---|
| 13 | <target name="create-installer">
|
---|
[15053] | 14 | <addressedcall target="setup-for-installer-creation"/>
|
---|
| 15 | <addressedcall target="compile-installer"/>
|
---|
| 16 | <addressedcall target="clean-up-after-installer-creation"/>
|
---|
| 17 | </target>
|
---|
| 18 |
|
---|
| 19 | <target name="setup-for-installer-creation">
|
---|
[15023] | 20 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 21 |
|
---|
| 22 | <echo>Project Path: ${project.path}</echo>
|
---|
| 23 | <mkdir dir="${basedir}/installer"/>
|
---|
| 24 | <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml"/>
|
---|
| 25 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
|
---|
[15053] | 26 |
|
---|
| 27 | </if>
|
---|
| 28 | </target>
|
---|
[15023] | 29 |
|
---|
[15053] | 30 | <target name="compile-installer">
|
---|
| 31 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 32 |
|
---|
[15023] | 33 | <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
|
---|
| 34 | compress="true"
|
---|
| 35 | extractType="NonExtractor"
|
---|
| 36 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 37 | buildFile="${project.installer.path}/build.xml"
|
---|
| 38 | antInstallLib="${ant.installer.home}/lib"
|
---|
| 39 | antLib="${ant.installer.home}/antlib"
|
---|
| 40 | validateConfig="true"
|
---|
| 41 | icons="bluecurve">
|
---|
| 42 |
|
---|
| 43 | <zipfileset dir="${project.installer.path}/cp" includes="resources/*"/>
|
---|
| 44 | <zipfileset dir="${wirk3.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
|
---|
| 45 |
|
---|
| 46 | <zipfileset dir="${project.path}" includes="*"/>
|
---|
| 47 | <zipfileset dir="${project.path}/bin" prefix="bin"><include name="**/*"/></zipfileset>
|
---|
| 48 | <zipfileset dir="${project.path}/docs" prefix="docs"><include name="**/*"/></zipfileset>
|
---|
| 49 | <zipfileset dir="${project.path}/gli" prefix="gli"><include name="**/*"/></zipfileset>
|
---|
| 50 | <zipfileset dir="${project.path}/gs2build" prefix="gs2build"><include name="**/*"/></zipfileset>
|
---|
| 51 | <zipfileset dir="${project.path}/lib" prefix="lib"><include name="**/*"/></zipfileset>
|
---|
| 52 | <zipfileset dir="${project.path}/web" prefix="web"><include name="**/*"/></zipfileset>
|
---|
| 53 | <zipfileset dir="${project.path}/packages" prefix="packages"><include name="**/*"/></zipfileset>
|
---|
| 54 | <zipfileset dir="${project.path}/resources" prefix="resources"><include name="**/*"/></zipfileset>
|
---|
| 55 | <zipfileset dir="${project.path}/winutil" prefix="winutil"><include name="**/*"/></zipfileset>
|
---|
| 56 | <zipfileset dir="${project.path}/src" prefix="src"><include name="**/*"/></zipfileset>
|
---|
| 57 | </installer>
|
---|
| 58 |
|
---|
| 59 | </if>
|
---|
| 60 | </target>
|
---|
| 61 |
|
---|
[15053] | 62 | <target name="clean-up-after-installer-creation">
|
---|
| 63 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 64 | <delete file="${basedir}/installer/antinstall-config.xml"/>
|
---|
| 65 | </if>
|
---|
| 66 | </target>
|
---|
| 67 |
|
---|
| 68 |
|
---|
[15023] | 69 | </project>
|
---|