Ignore:
Timestamp:
2008-08-13T11:48:29+12:00 (16 years ago)
Author:
oranfry
Message:

changes to wirk3 after ant cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/wirk3/ant-scripts/create-installer.xml

    r16279 r16748  
    33
    44    <target name="create-installer">
    5         <addressedcall target="setup-for-installer-creation"/>
    6         <addressedcall target="compile-installer"/>
     5        <antcall target="calculate-component-sizes"/> <!-- from rk3-targets -->
     6        <antcall target="copy-installer-files"/>
     7        <antcall target="make-installer-files-concrete"/> <!-- from rk3-targets -->
     8        <antcall target="compile-installer"/>
    79    </target>
    810
    9     <target name="setup-for-installer-creation">
    10         <if><bool><istrue value="${execute}"/></bool>
    11            
    12             <mkdir dir="${basedir}/installer/resources"/>
    13             <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml"/>
    14             <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml"/>
    15             <copy todir="${basedir}/installer/classes">
    16                 <fileset dir="${wirk3.home}/windows/installer-classes"/>
    17                 <fileset dir="${wirk3.home}/greenstone3/installer-classes"/>
    18                 <fileset dir="${wirk3.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
    19             </copy>
    20            
    21             <!-- put the concrete values of things in the config -->
    22             <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/>
    23             <rsr file="${basedir}/installer/build.xml" pattern="@version@" replacement="${version}"/>
    24                                    
    25             <!-- put the concrete values of things in the text -->
    26             <!-- default -->
    27             <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@version@" replacement="${version}"/>
    28             <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
    29             <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
    30             <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
    31             <rsr file="${basedir}/installer/classes/resources/LanguagePack.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
    32            
    33             <!-- chinese -->
    34             <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@version@" replacement="${version}"/>
    35             <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@java.min.version@" replacement="${java.min.version}"/>
    36             <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.java@" replacement="${bundled.version.windows-java}"/>
    37             <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.tomcat@" replacement="${bundled.version.tomcat}"/>
    38             <rsr file="${basedir}/installer/classes/resources/LanguagePack_zh_CN.properties" pattern="@bundled.version.ant@" replacement="${bundled.version.ant}"/>
    39            
    40            
    41         </if>
     11    <target name="copy-installer-files">
     12        <mkdir dir="${basedir}/installer/resources"/>
     13        <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml"/>
     14        <copy todir="${basedir}/installer" file="${wirk3.home}/installer/build.xml"/>
     15        <copy todir="${basedir}/installer/classes">
     16            <fileset dir="${wirk3.home}/windows/installer-classes"/>
     17            <fileset dir="${wirk3.home}/greenstone3/installer-classes"/>
     18            <fileset dir="${wirk3.home}/ant-scripts/tasks/orans" includes="RegexSearchReplace.class" />
     19        </copy>
    4220    </target>
    4321
    4422    <target name="compile-installer">
    45         <if><bool><istrue value="${execute}"/></bool>
     23        <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
     24                compress="true"
     25                extractType="NonExtractor"
     26                installConfig="${basedir}/installer/antinstall-config.xml"
     27                buildFile="${basedir}/installer/build.xml"
     28                antInstallLib="${wirk3.home}/packages/ant-installer/lib"
     29                antLib="${wirk3.home}/packages/ant/lib"
     30                validateConfig="true"
     31                icons="bluecurve">
     32
     33            <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
     34            <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*" />
    4635           
    47             <installer file="${basedir}/installer/greenstone-${version}-win32.jar"
    48                     compress="true"
    49                     extractType="NonExtractor"
    50                     installConfig="${basedir}/installer/antinstall-config.xml"
    51                     buildFile="${basedir}/installer/build.xml"
    52                     antInstallLib="${wirk3.home}/packages/ant-installer/lib"
    53                     antLib="${wirk3.home}/packages/ant/lib"
    54                     validateConfig="true"
    55                     icons="bluecurve">
    56 
    57                 <zipfileset dir="${basedir}/installer/classes" includes="**/*" />
    58                 <zipfileset dir="${basedir}/distribution/greenstone3" includes="**/*" />
    59                
    60             </installer>
    61            
    62         </if>
     36        </installer>
    6337    </target>
    6438   
Note: See TracChangeset for help on using the changeset viewer.