[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="lirk3-create-installer" default="create-installer">
|
---|
| 3 |
|
---|
| 4 | <target name="create-installer">
|
---|
[16684] | 5 | <antcall target="copy-installer-files"/>
|
---|
| 6 | <antcall target="make-installer-files-concrete"/> <!-- from rk3-targets -->
|
---|
| 7 | <antcall target="compile-installer"/>
|
---|
[15142] | 8 | </target>
|
---|
| 9 |
|
---|
[16684] | 10 | <target name="copy-installer-files">
|
---|
| 11 | <echo>Getting things ready to compile the installer</echo>
|
---|
| 12 | <mkdir dir="${basedir}/installer/resources"/>
|
---|
| 13 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/antinstall-config.xml" overwrite="true" />
|
---|
| 14 | <copy todir="${basedir}/installer" file="${lirk3.home}/installer/build.xml" overwrite="true" />
|
---|
| 15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
| 16 | <fileset dir="${lirk3.home}/greenstone3/installer-classes"/>
|
---|
| 17 | </copy>
|
---|
[17107] | 18 | <unjar src="${lirk3.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
| 19 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
[15142] | 20 | </target>
|
---|
| 21 |
|
---|
| 22 | <target name="compile-installer">
|
---|
[17257] | 23 |
|
---|
[16684] | 24 | <installer file="${basedir}/installer/greenstone3-with-java.jar"
|
---|
| 25 | compress="true"
|
---|
| 26 | extractType="NonExtractor"
|
---|
| 27 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 28 | buildFile="${basedir}/installer/build.xml"
|
---|
| 29 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
| 30 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
| 31 | validateConfig="true"
|
---|
| 32 | icons="bluecurve">
|
---|
[15142] | 33 |
|
---|
[16684] | 34 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" /> <!-- installer classes -->
|
---|
| 35 | <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
|
---|
[15205] | 36 |
|
---|
[16684] | 37 | </installer>
|
---|
[15205] | 38 |
|
---|
[16684] | 39 | <!-- delete the 'bundled java only' lines from the installer config -->
|
---|
| 40 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*<!-- bundled java only -->" replacement=""/>
|
---|
[15205] | 41 |
|
---|
[16684] | 42 | <installer file="${basedir}/installer/greenstone3.jar"
|
---|
| 43 | compress="true"
|
---|
| 44 | extractType="NonExtractor"
|
---|
| 45 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 46 | buildFile="${basedir}/installer/build.xml"
|
---|
| 47 | antInstallLib="${lirk3.home}/packages/ant-installer/lib"
|
---|
| 48 | antLib="${lirk3.home}/packages/ant/lib"
|
---|
| 49 | validateConfig="true"
|
---|
| 50 | icons="bluecurve">
|
---|
[15205] | 51 |
|
---|
[16684] | 52 | <zipfileset dir="${basedir}/installer/classes" includes="**/*"/>
|
---|
| 53 | <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*"/>
|
---|
| 54 | </installer>
|
---|
[17257] | 55 |
|
---|
[14982] | 56 | </target>
|
---|
| 57 |
|
---|
| 58 | </project>
|
---|