Changeset 16681 for release-kits/shared/ant-scripts
- Timestamp:
- 2008-08-08T12:58:02+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-scripts/init.xml
r16623 r16681 21 21 <property name="basedir.local" refid="basedir.path"/> 22 22 23 <!-- current date and time --> 24 <tstamp> 25 <format property="current.month" pattern="MMM"/> 26 <format property="current.year" pattern="yyyy"/> 27 </tstamp> 23 28 24 29 <!-- BUNDLED JAVA INFO --> … … 29 34 <property name="linux-java.installer" value="jre_6u5_tar_gz"/> 30 35 <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="97 Mb"/>36 <property name="component.size.linux-java" value="97 MB"/> 32 37 <!-- windows --> 33 38 <property name="bundled.version.windows-java" value="1.6.0_03"/> 34 39 <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"/> 36 41 37 42 <!-- CLASSPATH --> … … 63 68 <taskdef name="setloglevel" classname="SetLogLevel" classpathref="project.classpath"/> 64 69 <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/> 65 <typedef name="addressedcall" classname="TreeCallTarget" classpathref="project.classpath"/>66 70 <typedef name="rsr" classname="RegexSearchReplace" classpathref="project.classpath"/> 67 71 <typedef name="rsplit" classname="SplitResource" classpathref="project.classpath"/> … … 70 74 71 75 <!-- DATES IN DIFFERENT LANGUAGES --> 72 <!-- relies on ${current.month} being set by the release kits build.xml file -->73 76 <get-property-value propertiesFile="${rk.home}/lib/dates.properties" propertyName="ar.Dates.${current.month}" outputProperty="month.ar"/> 74 77 <get-property-value propertiesFile="${rk.home}/lib/dates.properties" propertyName="ca.Dates.${current.month}" outputProperty="month.ca"/> … … 103 106 104 107 <!-- version number --> 105 <echo level="info">Version number...</echo>106 108 <if> 107 109 <bool> … … 110 112 <fail>Version number not set</fail> 111 113 </if> 112 113 <echo level="info">Version number: ${version}</echo>114 114 <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"/>150 115 151 116 <!-- execute target code or just show the tree --> 152 <echo level="info">Determining execute mode...</echo>153 117 <if> 154 118 <bool> 155 119 <not><isset property="execute"/></not> 156 120 </bool> 157 <echo level="info">Execute not set, defaulting to 'true'</echo>158 121 <property name="execute" value="true"/> 159 122 <else> 160 <echo level="info">Execute set to ${execute}</echo>161 123 <if> 162 124 <bool> … … 172 134 </else> 173 135 </if> 174 <echo level="info"/>175 136 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> 182 144 </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> 187 147 </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> 190 154 <echo level="info"/> 191 155
Note:
See TracChangeset
for help on using the changeset viewer.