[14982] | 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 |
|
---|
[15980] | 11 | <project name="lirk2-create-installer" default="create-installer">
|
---|
[14982] | 12 |
|
---|
| 13 | <target name="create-installer">
|
---|
[15142] | 14 | <addressedcall target="setup-for-installer-creation"/>
|
---|
| 15 | <addressedcall target="compile-installer"/>
|
---|
| 16 | </target>
|
---|
| 17 |
|
---|
| 18 | <target name="setup-for-installer-creation">
|
---|
[14982] | 19 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 20 |
|
---|
[15980] | 21 | <echo>Project Path: ${basedir}/distribution/gsdl</echo>
|
---|
[14982] | 22 | <mkdir dir="${basedir}/installer"/>
|
---|
[15980] | 23 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/antinstall-config.xml" overwrite="true"/>
|
---|
| 24 | <copy todir="${basedir}/installer" file="${lirk2.home}/installer/build.xml" overwrite="true"/>
|
---|
| 25 | <copy todir="${basedir}/installer/cp" overwrite="true"><fileset dir="${lirk2.home}/installer/cp"/></copy>
|
---|
[15205] | 26 |
|
---|
| 27 | <!-- put the concrete values of things in the config -->
|
---|
[15142] | 28 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
|
---|
[15980] | 29 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@component.size.java@" replacement="${component.size.java}"/>
|
---|
[15205] | 30 | <rsr file="${basedir}/installer/build.xml" pattern="@java.min.version@" replacement="${java.min.version}"/>
|
---|
[15142] | 31 | <rsr file="${basedir}/installer/build.xml" pattern="@java.extracted@" replacement="${java.extracted}"/>
|
---|
[15205] | 32 |
|
---|
| 33 | <!-- put the concrete values of things in the text -->
|
---|
| 34 | <!-- default -->
|
---|
| 35 | <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
|
---|
| 36 | <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
|
---|
| 37 | <rsr file="${basedir}/installer/cp/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>
|
---|
| 38 |
|
---|
| 39 | <!-- chinese -->
|
---|
[15980] | 40 | <!--
|
---|
[15205] | 41 | <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
|
---|
| 42 | <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
|
---|
| 43 | <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.java}"/>
|
---|
| 44 | <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
|
---|
| 45 | <rsr file="${basedir}/installer/cp/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
|
---|
[15980] | 46 | -->
|
---|
[15205] | 47 |
|
---|
[15980] | 48 |
|
---|
[15142] | 49 | </if>
|
---|
| 50 | </target>
|
---|
| 51 |
|
---|
| 52 | <target name="compile-installer">
|
---|
| 53 | <if><bool><istrue value="${execute}"/></bool>
|
---|
| 54 |
|
---|
[15980] | 55 | <!-- create the installer with java -->
|
---|
| 56 | <installer file="${basedir}/installer/gsdl-${version}-linux-with-java.jar"
|
---|
[15205] | 57 | compress="true"
|
---|
| 58 | extractType="NonExtractor"
|
---|
| 59 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 60 | buildFile="${basedir}/installer/build.xml"
|
---|
[15980] | 61 | antInstallLib="${lirk2.home}/bin/ant-installer/lib"
|
---|
| 62 | antLib="${lirk2.home}/bin/ant-installer/antlib"
|
---|
[15205] | 63 | validateConfig="true"
|
---|
[15304] | 64 | failOnError="false"
|
---|
[15205] | 65 | icons="bluecurve">
|
---|
| 66 |
|
---|
| 67 | <zipfileset dir="${basedir}/installer/cp" includes="resources/*"/>
|
---|
[15980] | 68 | <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
|
---|
| 69 | <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
|
---|
[15205] | 70 |
|
---|
| 71 | </installer>
|
---|
| 72 |
|
---|
| 73 | <!-- delete the 'bundled java only' lines from the installer config -->
|
---|
| 74 | <rsr file="${basedir}/installer/antinstall-config.xml" pattern=".*<!-- bundled java only -->" replacement=""/>
|
---|
| 75 |
|
---|
[15980] | 76 | <!-- create the installer without java -->
|
---|
| 77 | <installer file="${basedir}/installer/gsdl-${version}-linux.jar"
|
---|
[14982] | 78 | compress="true"
|
---|
| 79 | extractType="NonExtractor"
|
---|
[15142] | 80 | installConfig="${basedir}/installer/antinstall-config.xml"
|
---|
| 81 | buildFile="${basedir}/installer/build.xml"
|
---|
[15980] | 82 | antInstallLib="${lirk2.home}/bin/ant-installer/lib"
|
---|
| 83 | antLib="${lirk2.home}/bin/ant-installer/antlib"
|
---|
[14982] | 84 | validateConfig="true"
|
---|
[15980] | 85 | failOnError="false"
|
---|
[14982] | 86 | icons="bluecurve">
|
---|
| 87 |
|
---|
[15304] | 88 | <zipfileset dir="${basedir}/installer/cp" includes="resources/*"/>
|
---|
[15980] | 89 | <zipfileset dir="${lirk2.home}/ant-scripts/tasks/orans"><include name="RegexSearchReplace.class"/></zipfileset>
|
---|
| 90 | <zipfileset dir="${basedir}/distributions/web" includes="**/*"/>
|
---|
[14982] | 91 |
|
---|
| 92 | </installer>
|
---|
| 93 |
|
---|
| 94 | </if>
|
---|
| 95 | </target>
|
---|
| 96 |
|
---|
| 97 | </project>
|
---|