Ignore:
Timestamp:
2010-01-26T14:44:30+13:00 (14 years ago)
Author:
oranfry
Message:

tidy up for greenstone3, and made wrap shared

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/kits/rk3/ant-scripts/build.xml

    r20543 r21630  
    1010<project name="rk3-build" default="rk3">
    1111
    12     <!-- CONSTANTS -->
    13 
    14     <!-- for the benefit of the shared scripts, set release-kit home -->
    15     <property name="rk.name" value="rk3"/>
    16     <property name="rk.home" value="${rk3.home}" />
     12    <property name="version.major" value="3"/>
    1713
    1814    <!-- IMPORT OTHER ANT SCRIPTS -->
    19     <import file="../core/ant-scripts/init.xml"/>
    20     <import file="../core/ant-scripts/operations-on-gli.xml"/>
    21     <import file="../greenstone3/ant-scripts/rk3-targets.xml"/>
     15    <import file="${rk.home}/shared/core/ant-scripts/init.xml"/>
     16    <import file="${rk.home}/shared/core/ant-scripts/operations-on-gli.xml"/>
     17    <import file="${rk.home}/shared/greenstone2/ant-scripts/rk3-targets.xml"/>
    2218
    2319    <import file="compile.xml"/>
    24     <import file="create-distribution.xml"/>
    25     <import file="create-installer.xml"/>
     20    <import file="${rk.home}/shared/core/ant-scripts/create-installer.xml"/>
    2621    <import file="wrap.xml"/>
    2722
     
    2924    <target name="rk3" depends="init,gs3-init">
    3025        <antcall target="compile"/>
    31         <antcall target="create-distribution"/>
    32         <ant inheritRefs="true" dir="." antfile="${rk3.home}/ant-scripts/create-components.xml" target="create-components"/>
     26        <ant inheritRefs="true" dir="." antfile="${rk.home}/kits/${rk.name}/ant-scripts/create-components.xml" target="create-components"/>
    3327        <antcall target="create-installer"/>
    3428        <antcall target="wrap"/>
    35         <antcall target="create-minimal-distribution"/>
    36 
    3729    </target>
    3830
    39     <target name="properties">
    40         <echo>Required Properties:</echo>
    41         <echo>version             the version string for the release</echo>
    42         <echo/>
    43         <echo>Optional Properties:</echo>
    44         <echo>branch.path         the branch of Greenstone3 to make a release of. Eg: tags/2.81. Default: trunk.</echo>
    45         <echo>branch.revision     the revision of Greenstone3 to make a release of. Eg: 18273. Default: HEAD.</echo>
    46         <echo/>
    47     </target>
     31    <!-- target to show properties in rk3-build.properties -->
     32    <target name="properties" depends="core-properties"/>
    4833
     34    <!-- create the property set to be forwarded to greenstone3 -->
     35    <propertyset id="forward.properties">
     36        <propertyref prefix="forward."/>
     37        <mapper type="glob" from="forward.*" to="*"/>
     38        <propertyref name="app.version"/>
     39        <propertyref name="branch.path"/>
     40        <propertyref name="branch.revision"/>
     41    </propertyset>
    4942
    5043</project>
Note: See TracChangeset for help on using the changeset viewer.