[14982] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[15980] | 2 | <project name="lirk2-create-installer" default="create-installer">
|
---|
[14982] | 3 |
|
---|
| 4 | <target name="create-installer">
|
---|
[16815] | 5 | <antcall target="copy-installer-files"/>
|
---|
| 6 | <antcall target="make-installer-files-concrete"/> <!-- from rk2-targets -->
|
---|
[16739] | 7 | <antcall target="compile-installer"/>
|
---|
[15142] | 8 | </target>
|
---|
| 9 |
|
---|
[16815] | 10 | <target name="copy-installer-files">
|
---|
| 11 | <echo>Copying installer files</echo>
|
---|
[16739] | 12 | <mkdir dir="${basedir}/installer/classes"/>
|
---|
| 13 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
|
---|
| 14 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/>
|
---|
| 15 | <copy todir="${basedir}/installer/classes" overwrite="true">
|
---|
| 16 | <fileset dir="${lirk2.home}/greenstone2/installer-classes"/>
|
---|
[17396] | 17 | <fileset file="${basedir}/distributions/web/LICENSE.txt"/>
|
---|
[16739] | 18 | </copy>
|
---|
[17396] | 19 |
|
---|
[17107] | 20 | <unjar src="${lirk2.home}/ant-scripts/tasks/greenstone/anttasks.jar" dest="${basedir}/installer/classes"/>
|
---|
| 21 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
[17396] | 22 |
|
---|
| 23 | <unjar src="${lirk2.home}/ant-scripts/tasks/7z-ant/7z.jar" dest="${basedir}/installer/classes"/>
|
---|
| 24 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
| 25 |
|
---|
[17107] | 26 | <unjar src="${lirk2.home}/lib/crypt.jar" dest="${basedir}/installer/classes"/>
|
---|
| 27 | <delete dir="${basedir}/installer/classes/META-INF"/>
|
---|
[15142] | 28 | </target>
|
---|
| 29 |
|
---|
| 30 | <target name="compile-installer">
|
---|
[17352] | 31 |
|
---|
[17396] | 32 | <!-- create the full installer -->
|
---|
[17352] | 33 | <installer file="${basedir}/installer/Greenstone-${version}-linux.jar"
|
---|
[16739] | 34 | compress="true"
|
---|
| 35 | extractType="NonExtractor"
|
---|
| 36 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 37 | buildFile="${basedir}/installer/build.xml"
|
---|
| 38 | antInstallLib="${lirk2.home}/packages/ant-installer/lib"
|
---|
| 39 | antLib="${lirk2.home}/packages/ant/lib"
|
---|
| 40 | validateConfig="true"
|
---|
| 41 | failOnError="false"
|
---|
| 42 | icons="bluecurve">
|
---|
[15205] | 43 |
|
---|
[16739] | 44 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
[17396] | 45 | <zipfileset dir="${basedir}/components" includes="*.lzma"/>
|
---|
[15205] | 46 |
|
---|
[16739] | 47 | </installer>
|
---|
[15205] | 48 |
|
---|
[17396] | 49 | <dcff
|
---|
| 50 | file="${basedir}/installer/antinstall-config.xml"
|
---|
| 51 | startTag=".*<!-- start full -->"
|
---|
| 52 | endTag=".*<!-- end full -->"/>
|
---|
| 53 |
|
---|
| 54 | <!-- create the minimal installer -->
|
---|
| 55 | <installer file="${basedir}/installer/Greenstone-${version}-linux-minimal.jar"
|
---|
| 56 | compress="true"
|
---|
| 57 | extractType="NonExtractor"
|
---|
| 58 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 59 | buildFile="${basedir}/installer/build.xml"
|
---|
| 60 | antInstallLib="${lirk2.home}/packages/ant-installer/lib"
|
---|
| 61 | antLib="${lirk2.home}/packages/ant/lib"
|
---|
| 62 | validateConfig="true"
|
---|
| 63 | failOnError="false"
|
---|
| 64 | icons="bluecurve">
|
---|
| 65 |
|
---|
| 66 | <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
|
---|
| 67 | <zipfileset dir="${basedir}/components" includes="core.lzma"/>
|
---|
| 68 |
|
---|
| 69 | </installer>
|
---|
| 70 |
|
---|
| 71 |
|
---|
[14982] | 72 | </target>
|
---|
| 73 |
|
---|
| 74 | </project>
|
---|