| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- ====================================================================== | 2 <!-- ====================================================================== |
| 3 Sep 6, 2011 4:17:37 PM
| 3 Sep 6, 2011 4:17:37 PM
|
| 4 | 4 |
| 5 Dart Tools build common Ant Script | 5 Dart Tools build common Ant Script |
| 6 Common targets and macros for the build of Dart Tools | 6 Common targets and macros for the build of Dart Tools |
| 7 | 7 |
| 8 mrrussell | 8 mrrussell |
| 9 ====================================================================== --> | 9 ====================================================================== --> |
| 10 <project name="Dart Tools build common Ant Script" default="notStandalone"> | 10 <project name="Dart Tools build common Ant Script" default="notStandalone"> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 <fail>* | 139 <fail>* |
| 140 ********************************** | 140 ********************************** |
| 141 Error: | 141 Error: |
| 142 ${user.os.property.file} must exist. | 142 ${user.os.property.file} must exist. |
| 143 In the directory ${data.location} | 143 In the directory ${data.location} |
| 144 look at ${data.location}/chrome-bot.linux.properties | 144 look at ${data.location}/chrome-bot.linux.properties |
| 145 and use it as a template to create | 145 and use it as a template to create |
| 146 ${user.os.property.file} | 146 ${user.os.property.file} |
| 147 ********************************** | 147 ********************************** |
| 148 <condition> | 148 <condition> |
| 149 <and> |
| 150 <not><isset property="build.no.properties"/></not> |
| 149 <not> | 151 <not> |
| 150 <available file="${user.os.property.file}" type="file" /> | 152 <available file="${user.os.property.file}" type="file" /> |
| 151 </not> | 153 </not> |
| 154 </and> |
| 152 </condition> | 155 </condition> |
| 153 </fail> | 156 </fail> |
| 154 <echo message="reading ${user.os.property.file}" /> | 157 <echo message="reading ${user.os.property.file}" /> |
| 155 <property file="${user.os.property.file}" /> | 158 <property file="${user.os.property.file}" /> |
| 156 </target> | 159 </target> |
| 157 | 160 |
| 158 <!-- read the properties files --> | 161 <!-- read the properties files --> |
| 159 <target name="readProperties" depends="configDataLocation, readOsSpecificPro
pertyFile"> | 162 <target name="readProperties" depends="configDataLocation, readOsSpecificPro
pertyFile"> |
| 160 <property name="user.property.file" location="${data.location}/${user.na
me}.properties" /> | 163 <property name="user.property.file" location="${data.location}/${user.na
me}.properties" /> |
| 161 <property name="default-user.property.file" location="${data.location}/d
efault-user.properties" /> | 164 <property name="default-user.property.file" location="${data.location}/d
efault-user.properties" /> |
| 162 <property name="eclipse.property.file" location="${data.location}/eclips
e-platform.properties" /> | 165 <property name="eclipse.property.file" location="${data.location}/eclips
e-platform.properties" /> |
| 163 <echo message="reading ${eclipse.property.file}" /> | 166 <echo message="reading ${eclipse.property.file}" /> |
| 164 <property file="${eclipse.property.file}" /> | 167 <property file="${eclipse.property.file}" /> |
| 165 <!-- | 168 <!-- |
| 166 validate that the ${user.name}.property file exists | 169 validate that the ${user.name}.property file exists |
| 167 --> | 170 --> |
| 168 <fail>* | 171 <fail> |
| 169 ********************************** | 172 ********************************** |
| 170 Error: | 173 Error: |
| 171 ${user.property.file} must exist. | 174 ${user.property.file} must exist. |
| 172 In the directory ${data.location} | 175 In the directory ${data.location} |
| 173 copy the "user.properties" file to "${user.name}.properties" | 176 copy the "user.properties" file to "${user.name}.properties" |
| 174 and adjust the content for your build situation | 177 and adjust the content for your build situation |
| 175 ********************************** | 178 ********************************** |
| 176 <condition> | 179 <condition> |
| 180 <and> |
| 181 <not><isset property="build.no.properties"/></not> |
| 177 <not> | 182 <not> |
| 178 <available file="${user.property.file}" type="file" /> | 183 <available file="${user.property.file}" type="file" /> |
| 179 </not> | 184 </not> |
| 185 </and> |
| 180 </condition> | 186 </condition> |
| 181 </fail> | 187 </fail> |
| 182 <echo message="reading ${user.property.file}" /> | 188 <echo message="reading ${user.property.file}" /> |
| 183 <property file="${user.property.file}" /> | 189 <property file="${user.property.file}" /> |
| 184 | 190 |
| 185 <!-- | 191 <!-- |
| 186 validate that the default-user.property file exists | 192 validate that the default-user.property file exists |
| 187 --> | 193 --> |
| 188 <fail>Error: | 194 <fail>Error: |
| 189 ${default-user.property.file} must exist. | 195 ${default-user.property.file} must exist. |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 ****************************************************************************
**** | 291 ****************************************************************************
**** |
| 286 --> | 292 --> |
| 287 <macrodef name="setupEclipse"> | 293 <macrodef name="setupEclipse"> |
| 288 <attribute name="location" /> | 294 <attribute name="location" /> |
| 289 <attribute name="version" /> | 295 <attribute name="version" /> |
| 290 <attribute name="arch" /> | 296 <attribute name="arch" /> |
| 291 <attribute name="os.ws" /> | 297 <attribute name="os.ws" /> |
| 292 <sequential> | 298 <sequential> |
| 293 <echo message="setting up Eclipse @{version} (@{arch} @{os.ws} in @{
location})" /> | 299 <echo message="setting up Eclipse @{version} (@{arch} @{os.ws} in @{
location})" /> |
| 294 <mkdir dir="${build.downloads}" /> | 300 <mkdir dir="${build.downloads}" /> |
| 295 <echoproperties prefix="eclipse-" /> | 301 <!-- echoproperties prefix="eclipse-" / --> |
| 296 <get src="${eclipse-sdk.@{version}.url}/${eclipse-sdk.@{version}.@{o
s.ws}.@{arch}.zip}" | 302 <get src="${eclipse-sdk.@{version}.url}/${eclipse-sdk.@{version}.@{o
s.ws}.@{arch}.zip}" |
| 297 dest="${build.downloads}/eclipse-SDK-@{version}-@{os.ws}-@{arch
}.${eclipse-sdk-@{os.ws}.ext}" | 303 dest="${build.downloads}/eclipse-SDK-@{version}-@{os.ws}-@{arch
}.${eclipse-sdk-@{os.ws}.ext}" |
| 298 verbose="true" | 304 verbose="true" |
| 299 usetimestamp="true"/> | 305 usetimestamp="true"/> |
| 300 <mkdir dir="@{location}"/> | 306 <mkdir dir="@{location}"/> |
| 301 <expandArchive archive-name="${build.downloads}/eclipse-SDK-@{versio
n}-@{os.ws}-@{arch}.${eclipse-sdk-@{os.ws}.ext}" | 307 <expandArchive archive-name="${build.downloads}/eclipse-SDK-@{versio
n}-@{os.ws}-@{arch}.${eclipse-sdk-@{os.ws}.ext}" |
| 302 output-dir="@{location}"/> | 308 output-dir="@{location}"/> |
| 303 </sequential> | 309 </sequential> |
| 304 </macrodef> | 310 </macrodef> |
| 305 | 311 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 <condition property="do.unzip"> | 658 <condition property="do.unzip"> |
| 653 <istrue value="${is.zip}"/> | 659 <istrue value="${is.zip}"/> |
| 654 </condition> | 660 </condition> |
| 655 </target> | 661 </target> |
| 656 | 662 |
| 657 <target name="-unzipFile" if="do.unzip"> | 663 <target name="-unzipFile" if="do.unzip"> |
| 658 <unzip src="${archive.name}" dest="${output.dir}" /> | 664 <unzip src="${archive.name}" dest="${output.dir}" /> |
| 659 </target> | 665 </target> |
| 660 | 666 |
| 661 <target name="-untarFile" unless="do.unzip"> | 667 <target name="-untarFile" unless="do.unzip"> |
| 662 <untar src="${archive.name}" dest="${output.dir}" compression="gzip" /> | 668 <untar src="${archive.name}" dest="${output.dir}" compression="gzip" /> |
| 663 </target> | 669 </target> |
| 664 | 670 |
| 665 </project> | 671 </project> |
| OLD | NEW |