Changeset 16681 for release-kits/shared


Ignore:
Timestamp:
2008-08-08T12:58:02+12:00 (16 years ago)
Author:
oranfry
Message:

further improving code sharing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-scripts/init.xml

    r16623 r16681  
    2121    <property name="basedir.local" refid="basedir.path"/>
    2222
     23    <!-- current date and time -->
     24    <tstamp>
     25        <format property="current.month" pattern="MMM"/>
     26        <format property="current.year" pattern="yyyy"/>
     27    </tstamp>
    2328   
    2429    <!-- BUNDLED JAVA INFO -->
     
    2934    <property name="linux-java.installer" value="jre_6u5_tar_gz"/>
    3035    <property name="linux-java.extracted" value="jre1.6.0_05"/> <!-- set this to the name of the top level directory in the above archive -->
    31     <property name="component.size.linux-java" value="97Mb"/>
     36    <property name="component.size.linux-java" value="97 MB"/>
    3237    <!-- windows -->
    3338    <property name="bundled.version.windows-java" value="1.6.0_03"/>
    3439    <property name="windows-java.installer" value="jre-6u3-windows-i586-p-s.exe"/>
    35     <property name="component.size.windows-java" value="?Mb"/>
     40    <property name="component.size.windows-java" value="? MB"/>
    3641   
    3742    <!-- CLASSPATH -->
     
    6368    <taskdef name="setloglevel" classname="SetLogLevel" classpathref="project.classpath"/>
    6469    <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/>
    65     <typedef name="addressedcall" classname="TreeCallTarget" classpathref="project.classpath"/>
    6670    <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/>
    6771    <typedef name="rsplit" classname="SplitResource" classpathref="project.classpath"/>
     
    7074
    7175    <!-- DATES IN DIFFERENT LANGUAGES -->
    72     <!-- relies on ${current.month} being set by the release kits build.xml file -->
    7376    <get-property-value propertiesFile="${rk.home}/lib/dates.properties" propertyName="ar.Dates.${current.month}" outputProperty="month.ar"/>
    7477    <get-property-value propertiesFile="${rk.home}/lib/dates.properties" propertyName="ca.Dates.${current.month}" outputProperty="month.ca"/>
     
    103106
    104107        <!-- version number -->
    105         <echo level="info">Version number...</echo>
    106108        <if>
    107109            <bool>
     
    110112            <fail>Version number not set</fail>
    111113        </if>
    112 
    113         <echo level="info">Version number: ${version}</echo>
    114114        <property name="app.version" value="${version}"/>
    115         <echo level="info"/>
    116 
    117 
    118         <!-- resume from -->
    119         <echo level="info">Checking if we are resuming from a given target...</echo>
    120         <if>
    121             <bool><not><isset property="resume.from"/></not></bool>
    122             <echo level="info">No, start from the beginning</echo>
    123             <else>
    124                 <echo level="info">Yes, resuming from ${resume.from}</echo>
    125             </else>
    126         </if>
    127         <echo level="info"/>
    128 
    129         <!-- check resume to -->
    130         <echo level="info">Checking if we are resuming up to a given target...</echo>
    131         <if>
    132             <bool><not><isset property="resume.to"/></not></bool>
    133             <echo level="info">No, stop at the end</echo>
    134             <else>
    135                 <echo level="info">Yes, resuming from ${resume.to}</echo>
    136             </else>
    137         </if>
    138         <echo level="info"/>
    139 
    140         <!-- check descend down -->
    141         <echo level="info">Checking if we are descending a given target...</echo>
    142         <if>
    143             <bool><not><isset property="resume.descend"/></not></bool>
    144             <echo level="info">No, execute the whole tree</echo>
    145             <else>
    146                 <echo level="info">Yes, descending down ${resume.descend}</echo>
    147             </else>
    148         </if>
    149         <echo level="info"/>
    150115
    151116        <!-- execute target code or just show the tree -->
    152         <echo level="info">Determining execute mode...</echo>
    153117        <if>
    154118            <bool>
    155119                <not><isset property="execute"/></not>
    156120            </bool>
    157             <echo level="info">Execute not set, defaulting to 'true'</echo>
    158121            <property name="execute" value="true"/>
    159122            <else>
    160                 <echo level="info">Execute set to ${execute}</echo>
    161123                <if>
    162124                    <bool>
     
    172134            </else>
    173135        </if>
    174         <echo level="info"/>
    175136
    176 
    177         <!-- check branch.path -->
    178         <echo level="info">Determining the branch path...</echo>
    179         <if>
    180             <bool><equals arg1="trunk" arg2="${version}"/></bool>
    181             <property name="branch.path" value="trunk"/>
     137        <!-- show important properties -->
     138        <echo level="info">Version (version): ${version}</echo>
     139        <echo level="info">Branch Path (branch.path): ${branch.path}</echo>
     140        <echo level="info">Current Month (current.month): ${current.month}</echo>
     141        <echo level="info">Current Year (current.year): ${current.year}</echo>
     142        <if><bool><equals arg1="${execute}" arg2="false"/></bool>
     143            <echo level="info">Simulating (execute=false)</echo>
    182144        </if>
    183 
    184         <if>
    185             <bool><not><isset property="branch.path"/></not></bool>
    186             <fail>You have not specified a branch path where code will come from in the repository</fail>
     145        <if><bool><isset property="resume.from" /></bool>
     146            <echo level="info">Resuming from (resume.from): ${resume.from} </echo>
    187147        </if>
    188 
    189         <echo level="info">Branch Path: ${branch.path}</echo>
     148        <if><bool><isset property="resume.to" /></bool>
     149            <echo level="info">Executing up to (resume.to): ${resume.to}</echo>
     150        </if>
     151        <if><bool><isset property="resume.descend" /></bool>
     152            <echo level="info">Descending target (resume.descend): ${resume.descend}</echo>
     153        </if>
    190154        <echo level="info"/>
    191155
Note: See TracChangeset for help on using the changeset viewer.