david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 1 | <project |
| 2 | default="main" |
| 3 | basedir="."> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 4 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 5 | <!-- |
| 6 | Required inputs: |
| 7 | |
| 8 | build.home |
| 9 | buildType |
| 10 | buildId |
| 11 | timestamp |
| 12 | env.BASEOS |
| 13 | env.BASEWS |
| 14 | env.BASEARCH |
| 15 | build.stream [optional] |
| 16 | build.committers [optional] |
| 17 | releng.tag [optional] |
| 18 | wtp.dir [optional] |
| 19 | clean [optional] |
| 20 | --> |
| 21 | |
david_williams | 42f9b24 | 2006-11-27 18:45:14 +0000 | [diff] [blame] | 22 | <!-- Note to be cross-platform, "environment variables" are only appropriate for |
| 23 | some variables, e.g. ones we set, since properties are case sensitive, even if |
| 24 | the environment variables on your operating system are not, e.g. it will |
| 25 | be ${env.Path} not ${env.PATH} on Windows --> |
| 26 | <property environment="env" /> |
| 27 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 28 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 29 | <target name="main"> |
| 30 | <property |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 31 | file="${build.home}/${env.RELENG_BUILDER}/build.properties" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 32 | <property |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 33 | file="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.api/api.properties" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 34 | <property |
| 35 | name="wtp.api" |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 36 | value="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.api" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 37 | <property |
| 38 | name="apiRoot" |
| 39 | value="${build.home}/apiRoot" /> |
| 40 | <property |
| 41 | name="buildLabel" |
| 42 | value="${buildId}" /> |
| 43 | <delete |
| 44 | dir="${apiRoot}" |
| 45 | failonerror="false" /> |
| 46 | <mkdir dir="${apiRoot}" /> |
| 47 | <antcall target="getReleng" /> |
david_williams | 403beae | 2007-12-09 02:10:40 +0000 | [diff] [blame] | 48 | <property |
| 49 | file="${apiRoot}/${env.RELENG}/maps/dependencies.properties" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 50 | <property |
| 51 | name="local.cache.dir" |
| 52 | value="${env.LOCAL_PREREQS_CACHE}" /> |
| 53 | <property |
| 54 | name="wtp.dir" |
| 55 | value="${local.cache.dir}" /> |
| 56 | <property |
| 57 | name="install.destination" |
| 58 | value="${apiRoot}" /> |
| 59 | <antcall target="getDependencies" /> |
| 60 | <condition |
| 61 | property="wtp-sdk" |
| 62 | value="wtp-sdk-${buildId}.zip" |
| 63 | else="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip"> |
| 64 | <available file="${wtp.dir}/wtp-sdk-${buildId}.zip" /> |
| 65 | </condition> |
| 66 | <condition |
| 67 | property="wtp-tests" |
| 68 | value="wtp-Automated-Tests-${buildId}.zip" |
| 69 | else="wtp-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip"> |
| 70 | <available |
| 71 | file="${wtp.dir}/wtp-Automated-Tests-${buildId}.zip" /> |
| 72 | </condition> |
| 73 | <antcall target="run" /> |
| 74 | <antcall target="upload" /> |
| 75 | </target> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 76 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 77 | <target name="getReleng"> |
| 78 | <property |
| 79 | name="releng.tag" |
| 80 | value="v${buildType}${timestamp}" /> |
| 81 | <cvs |
| 82 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
david_williams | 957ca73 | 2007-11-17 01:39:24 +0000 | [diff] [blame] | 83 | package="${env.RELENG}" |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 84 | dest="${apiRoot}" |
| 85 | command="export" |
| 86 | tag="${releng.tag}" |
| 87 | quiet="${env.CVS_QUIET}" |
| 88 | reallyquiet="${env.CVS_REALLY_QUIET}" /> |
| 89 | </target> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 90 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 91 | <target name="getDependencies"> |
| 92 | <antcall target="getAndInstall"> |
| 93 | <param |
| 94 | name="groupId" |
| 95 | value="eclipse" /> |
| 96 | </antcall> |
| 97 | <antcall target="getAndInstall"> |
| 98 | <param |
| 99 | name="groupId" |
| 100 | value="eclipseTestFramework" /> |
| 101 | <param |
| 102 | name="clean" |
| 103 | value="true" /> |
| 104 | </antcall> |
| 105 | <antcall target="getAndInstall"> |
| 106 | <param |
| 107 | name="groupId" |
| 108 | value="emf" /> |
| 109 | </antcall> |
| 110 | <antcall target="getAndInstall"> |
| 111 | <param |
| 112 | name="groupId" |
| 113 | value="gef" /> |
| 114 | </antcall> |
| 115 | <antcall target="getAndInstall"> |
| 116 | <param |
| 117 | name="groupId" |
| 118 | value="dtp" /> |
| 119 | </antcall> |
| 120 | <antcall target="getAndInstall"> |
| 121 | <param |
| 122 | name="groupId" |
| 123 | value="tomcat.5" /> |
| 124 | </antcall> |
| 125 | <antcall target="getAndInstall"> |
| 126 | <param |
| 127 | name="groupId" |
| 128 | value="jonas.4" /> |
| 129 | </antcall> |
| 130 | <antcall target="getAndInstall"> |
| 131 | <param |
| 132 | name="groupId" |
| 133 | value="oagis.release" /> |
| 134 | </antcall> |
| 135 | <antcall target="getAndInstall"> |
| 136 | <param |
| 137 | name="groupId" |
| 138 | value="oagis.wsdl" /> |
| 139 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 140 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 141 | <!-- this appears to be pretty explict hard coding for windows machines. |
| 142 | I wonder why the usual "get dependencies" methods would not work? |
| 143 | --> |
| 144 | <antcall target="get"> |
| 145 | <param |
| 146 | name="groupId" |
| 147 | value="eclipse" /> |
| 148 | <param |
| 149 | name="baseos" |
| 150 | value="win32" /> |
| 151 | <param |
| 152 | name="basews" |
| 153 | value="win32" /> |
| 154 | <param |
| 155 | name="basearch" |
| 156 | value="x86" /> |
| 157 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 158 | |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 159 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 160 | <antcall target="get"> |
| 161 | <param |
| 162 | name="groupId" |
| 163 | value="tptp" /> |
| 164 | </antcall> |
| 165 | <mkdir dir="${apiRoot}/piagent" /> |
| 166 | <condition property="isLinux"> |
| 167 | <equals |
| 168 | arg1="${baseos}" |
| 169 | arg2="linux" /> |
| 170 | </condition> |
| 171 | <antcall target="setupPIAgent.linux" /> |
| 172 | <antcall target="setupPIAgent.win32" /> |
| 173 | <antcall target="getAndInstallWTP"> |
| 174 | <param |
| 175 | name="file" |
| 176 | value="wtp-sdk-${buildId}.zip" /> |
| 177 | </antcall> |
| 178 | <antcall target="getAndInstallWTP"> |
| 179 | <param |
| 180 | name="file" |
| 181 | value="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip" /> |
| 182 | </antcall> |
| 183 | <antcall target="getAndInstallWTP"> |
| 184 | <param |
| 185 | name="file" |
| 186 | value="wtp-Automated-Tests-${buildId}.zip" /> |
| 187 | </antcall> |
| 188 | <antcall target="getAndInstallWTP"> |
| 189 | <param |
| 190 | name="file" |
| 191 | value="wtp-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip" /> |
| 192 | </antcall> |
| 193 | <delete file="${local.cache.dir}/wtp-apiscanner.zip" /> |
| 194 | <get |
| 195 | src="http://download.eclipse.org/webtools/downloads/wtp-apiscanner.zip" |
| 196 | dest="${local.cache.dir}/wtp-apiscanner.zip" /> |
| 197 | <unzip |
| 198 | src="${local.cache.dir}/wtp-apiscanner.zip" |
| 199 | dest="${apiRoot}" /> |
| 200 | </target> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 201 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 202 | <target name="get"> |
| 203 | <property |
| 204 | name="dependencyTargets" |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 205 | value="${build.home}/${env.RELENG_BUILDER}/scripts/dependency/build.xml" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 206 | <ant |
| 207 | antfile="${dependencyTargets}" |
| 208 | target="checkDependency"> |
| 209 | <property |
| 210 | name="groupId" |
| 211 | value="${groupId}" /> |
| 212 | </ant> |
| 213 | </target> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 214 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 215 | <target name="getAndInstall"> |
| 216 | <property |
| 217 | name="dependencyTargets" |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 218 | value="${build.home}/${env.RELENG_BUILDER}/scripts/dependency/build.xml" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 219 | <ant |
| 220 | antfile="${dependencyTargets}" |
| 221 | target="checkDependency"> |
| 222 | <property |
| 223 | name="groupId" |
| 224 | value="${groupId}" /> |
| 225 | </ant> |
| 226 | <ant |
| 227 | antfile="${dependencyTargets}" |
| 228 | target="installDependency"> |
| 229 | <property |
| 230 | name="groupId" |
| 231 | value="${groupId}" /> |
| 232 | </ant> |
| 233 | </target> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 234 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 235 | <target name="getAndInstallWTP"> |
| 236 | <available |
| 237 | file="${wtp.dir}/${file}" |
| 238 | property="file.exists" /> |
| 239 | <antcall target="getWTP" /> |
| 240 | <available |
| 241 | file="${wtp.dir}/${file}" |
| 242 | property="file.exists" /> |
| 243 | <antcall target="installWTP" /> |
| 244 | </target> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 245 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 246 | <target name="getWTP"> |
| 247 | <condition |
| 248 | property="file.url.1" |
| 249 | value="http://download.eclipse.org/webtools/committers" |
| 250 | else="http://download.eclipse.org/webtools/downloads"> |
| 251 | <isset property="build.committers" /> |
| 252 | </condition> |
| 253 | <condition |
| 254 | property="file.url" |
| 255 | value="${file.url.1}/drops/${build.stream}/${buildType}-${buildId}-${timestamp}" |
| 256 | else="${file.url.1}/drops/${buildType}-${buildId}-${timestamp}"> |
| 257 | <isset property="build.stream" /> |
| 258 | </condition> |
| 259 | <antcall target="getWTP2" /> |
| 260 | </target> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 261 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 262 | <target |
| 263 | name="getWTP2" |
| 264 | unless="file.exists"> |
| 265 | <property |
| 266 | name="file.url" |
| 267 | value="http://download.eclipse.org/webtools/downloads/drops/${build.stream}/${buildType}-${buildId}-${timestamp}" /> |
| 268 | <mkdir dir="${wtp.dir}" /> |
| 269 | <get |
| 270 | dest="${wtp.dir}/${file}" |
| 271 | src="${file.url}/${file}" |
| 272 | ignoreerrors="true" /> |
| 273 | </target> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 274 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 275 | <target |
| 276 | name="installWTP" |
| 277 | if="file.exists"> |
| 278 | <unzip |
| 279 | src="${wtp.dir}/${file}" |
| 280 | dest="${install.destination}" |
| 281 | overwrite="true" /> |
| 282 | </target> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 283 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 284 | <target |
| 285 | name="setupPIAgent.linux" |
| 286 | if="isLinux"> |
| 287 | <unzip |
| 288 | src="${local.cache.dir}/${tptp.file.linux-gtk-x86}" |
| 289 | dest="${apiRoot}/piagent"> |
| 290 | <patternset> |
| 291 | <include name="lib/*" /> |
| 292 | </patternset> |
| 293 | </unzip> |
| 294 | <move |
| 295 | todir="${apiRoot}/piagent" |
| 296 | flatten="true"> |
| 297 | <fileset dir="${apiRoot}/piagent/lib" /> |
| 298 | </move> |
| 299 | </target> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 300 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 301 | <target |
| 302 | name="setupPIAgent.win32" |
| 303 | unless="isLinux"> |
| 304 | <unzip |
| 305 | src="${local.cache.dir}/${tptp.file.win32-win32-x86}" |
| 306 | dest="${apiRoot}/piagent"> |
| 307 | <patternset> |
| 308 | <include name="bin/*" /> |
| 309 | </patternset> |
| 310 | </unzip> |
| 311 | <move |
| 312 | todir="${apiRoot}/piagent" |
| 313 | flatten="true"> |
| 314 | <fileset dir="${apiRoot}/piagent/bin" /> |
| 315 | </move> |
| 316 | </target> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 317 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 318 | <target name="run"> |
| 319 | <cvs |
| 320 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
| 321 | package="releng.wtptools/api/adopter_usages" |
| 322 | dest="${apiRoot}" |
| 323 | command="export" |
| 324 | tag="HEAD" /> |
| 325 | <mkdir dir="${apiRoot}/adopters" /> |
| 326 | <antcall target="runEclipseApp"> |
| 327 | <param |
| 328 | name="application" |
| 329 | value="org.eclipse.wtp.releng.tools.component.core.APIRefCompatibilityScanner" /> |
| 330 | <param |
| 331 | name="vmargs" |
| 332 | value="-Dsrc=${local.cache.dir}/${wtp-sdk},${local.cache.dir}/${eclipse.file.win32-win32-x86},${local.cache.dir}/${emf.file},${local.cache.dir}/${gef.file},${local.cache.dir}/${dtp.file} -Duse=${apiRoot}/releng.wtptools/api/adopter_usages -DoutputDir=${apiRoot}/adopters -Xmx512M" /> |
| 333 | </antcall> |
| 334 | <copy |
| 335 | tofile="${apiRoot}/apiresults/api-ref-compatibility.html" |
| 336 | file="${apiRoot}/adopters/api-ref-compatibility.html" /> |
| 337 | <copy |
| 338 | tofile="${apiRoot}/apiresults/api-ref-compatibility.xml" |
| 339 | file="${apiRoot}/adopters/api-ref-compatibility.xml" /> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 340 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 341 | <antcall target="runEclipseApp"> |
| 342 | <param |
| 343 | name="application" |
| 344 | value="org.eclipse.wtp.releng.tools.component.core.Java2API" /> |
| 345 | <param |
| 346 | name="vmargs" |
| 347 | value="-Dsrc=${local.cache.dir}/${eclipse.file.win32-win32-x86} -DoutputDir=${apiRoot}/api-eclipse -Dexcludes=.*internal.*" /> |
| 348 | </antcall> |
| 349 | <antcall target="runEclipseApp"> |
| 350 | <param |
| 351 | name="application" |
| 352 | value="org.eclipse.wtp.releng.tools.component.core.Java2API" /> |
| 353 | <param |
| 354 | name="vmargs" |
| 355 | value="-Dsrc=${local.cache.dir}/${emf.file} -DoutputDir=${apiRoot}/api-emf -Dexcludes=.*internal.*" /> |
| 356 | </antcall> |
| 357 | <antcall target="runEclipseApp"> |
| 358 | <param |
| 359 | name="application" |
| 360 | value="org.eclipse.wtp.releng.tools.component.core.Java2API" /> |
| 361 | <param |
| 362 | name="vmargs" |
| 363 | value="-Dsrc=${local.cache.dir}/${gef.file} -DoutputDir=${apiRoot}/api-gef -Dexcludes=.*internal.*" /> |
| 364 | </antcall> |
| 365 | <antcall target="runEclipseApp"> |
| 366 | <param |
| 367 | name="application" |
| 368 | value="org.eclipse.wtp.releng.tools.component.core.Java2API" /> |
| 369 | <param |
| 370 | name="vmargs" |
| 371 | value="-Dsrc=${local.cache.dir}/${dtp.file} -DoutputDir=${apiRoot}/api-dtp -Dexcludes=.*internal.*" /> |
| 372 | </antcall> |
| 373 | <antcall target="runEclipseApp"> |
| 374 | <param |
| 375 | name="application" |
| 376 | value="org.eclipse.wtp.releng.tools.component.core.Java2API" /> |
| 377 | <param |
| 378 | name="vmargs" |
| 379 | value="-Dsrc=${local.cache.dir}/${wtp-sdk} -DoutputDir=${apiRoot}/api-wtp" /> |
| 380 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 381 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 382 | <antcall target="runJavaMain"> |
| 383 | <param |
| 384 | name="classname" |
| 385 | value="org.eclipse.wtp.releng.tools.component.api.violation.APIViolationScanner" /> |
| 386 | <param |
| 387 | name="args" |
| 388 | value="-src ${local.cache.dir}/${wtp-sdk} -api ${apiRoot}/api-eclipse ${apiRoot}/api-emf ${apiRoot}/api-gef ${apiRoot}/api-dtp -outputDir ${apiRoot}/apiresults -html -includes org.eclipse.* -excludes org.eclipse.wst.* org.eclipse.jst.* org.eclipse.jem.* org.eclipse.jpt.* -debug" /> |
| 389 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 390 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 391 | <antcall target="runJavaMain"> |
| 392 | <param |
| 393 | name="classname" |
| 394 | value="org.eclipse.wtp.releng.tools.component.api.API2ComponentAPI" /> |
| 395 | <param |
| 396 | name="args" |
| 397 | value="-src ${local.cache.dir}/${wtp-sdk} -api ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -html" /> |
| 398 | </antcall> |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 399 | |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 400 | <antcall target="runEclipseApp"> |
| 401 | <param |
| 402 | name="application" |
| 403 | value="org.eclipse.wtp.releng.tools.component.core.JavadocScanner" /> |
| 404 | <param |
| 405 | name="vmargs" |
| 406 | value="-Dsrc=${local.cache.dir}/${wtp-sdk} -DoutputDir=${apiRoot}/apiresults -Dapi=${local.cache.dir}/${wtp-sdk} -Dexcludes=.*internal.* -DskipAPIGen=true -Dhtml=true" /> |
| 407 | </antcall> |
| 408 | |
| 409 | <antcall target="runJavaMain"> |
| 410 | <param |
| 411 | name="classname" |
| 412 | value="org.eclipse.wtp.releng.tools.component.api.violation.NonAPIDependencyScanner" /> |
| 413 | <param |
| 414 | name="args" |
| 415 | value="-src ${local.cache.dir}/${wtp-sdk} -api ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -refapi ${apiRoot}/api-eclipse ${apiRoot}/api-emf ${apiRoot}/api-gef ${apiRoot}/api-dtp -includes org.eclipse.* -skipAPIGen" /> |
| 416 | </antcall> |
| 417 | |
| 418 | <mkdir dir="${apiRoot}/results/consolelogs" /> |
| 419 | <copy |
| 420 | todir="${apiRoot}" |
| 421 | overwrite="true"> |
| 422 | <fileset |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 423 | dir="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.tests/testScripts" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 424 | </copy> |
| 425 | <copy |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 426 | file="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.api/testScripts/test.xml" |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 427 | tofile="${apiRoot}/test.xml" |
| 428 | overwrite="true" /> |
| 429 | <ant |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 430 | antfile="${build.home}/${env.RELENG_BUILDER}/distribution/wtp.tests/build.xml" |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 431 | target="runTestEclipse"> |
| 432 | <property |
| 433 | name="testRoot" |
| 434 | value="${apiRoot}" /> |
| 435 | <property |
| 436 | name="testTarget" |
| 437 | value="all" /> |
| 438 | </ant> |
| 439 | <antcall target="runJavaMain"> |
| 440 | <param |
| 441 | name="classname" |
| 442 | value="org.eclipse.wtp.releng.tools.component.CodeCoverageScanner" /> |
| 443 | <param |
| 444 | name="args" |
| 445 | value="-api ${local.cache.dir}/${wtp-sdk} -src ${local.cache.dir}/${wtp-sdk} ${local.cache.dir}/${wtp-tests} ${local.cache.dir}/${wtp-wst-tests} ${local.cache.dir}/${wtp-jst-tests} -trcxml ${apiRoot}/apiresults/trcxml -outputDir ${apiRoot}/apiresults -skipAPIGen -html" /> |
| 446 | </antcall> |
| 447 | |
| 448 | <cvs |
| 449 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
| 450 | package="releng.wtptools/api/api_progress" |
| 451 | dest="${apiRoot}" |
| 452 | command="export" |
| 453 | tag="HEAD" /> |
| 454 | <antcall target="runJavaMain"> |
| 455 | <param |
| 456 | name="classname" |
| 457 | value="org.eclipse.wtp.releng.tools.component.api.progress.APIProgressScanner" /> |
| 458 | <param |
| 459 | name="args" |
| 460 | value="-api ${local.cache.dir}/${wtp-sdk} -src ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -progressDir ${apiRoot}/releng.wtptools/api/api_progress/2.0 -timestamp ${timestamp} -excludes .*infopop .*doc.isv .*doc.user .*source org.eclipse.wst org.eclipse.jst org.eclipse.jem org.eclipse.jpt" /> |
| 461 | </antcall> |
| 462 | |
| 463 | <antcall target="runJavaMain"> |
| 464 | <param |
| 465 | name="classname" |
| 466 | value="org.eclipse.wtp.releng.tools.component.CodeCoverageScanner" /> |
| 467 | <param |
| 468 | name="args" |
| 469 | value="-api ${apiRoot}/api-wtp -src ${local.cache.dir}/${wtp-sdk} ${local.cache.dir}/${wtp-tests} ${local.cache.dir}/${wtp-wst-tests} ${local.cache.dir}/${wtp-jst-tests} -trcxml ${apiRoot}/apiresults/trcxml -outputDir ${apiRoot}/apiresults/full_test_coverage -html -includeAllTC -title Test_Coverage_Report" /> |
| 470 | </antcall> |
| 471 | </target> |
| 472 | |
| 473 | <target name="runEclipseApp"> |
| 474 | <property |
| 475 | name="vmargs" |
| 476 | value="" /> |
| 477 | <java |
| 478 | jar="${apiRoot}/eclipse/plugins/org.eclipse.equinox.launcher_*.jar" |
| 479 | fork="true" |
| 480 | failonerror="true" |
| 481 | timeout="3600000" |
| 482 | dir="${apiRoot}"> |
| 483 | <jvmarg value="-Dosgi.ws=${env.BASEWS}" /> |
| 484 | <jvmarg value="-Dosgi.os=${env.BASEOS}" /> |
| 485 | <jvmarg value="-Dosgi.arch=${env.BASEARCH}" /> |
| 486 | <jvmarg value="-Xmx512M" /> |
| 487 | <jvmarg line="${vmargs}" /> |
| 488 | <arg value="-application" /> |
| 489 | <arg value="${application}" /> |
| 490 | </java> |
| 491 | </target> |
| 492 | |
| 493 | <target name="runJavaMain"> |
| 494 | <java |
| 495 | fork="true" |
| 496 | classname="${classname}" |
| 497 | failonerror="false" |
| 498 | timeout="3600000" |
| 499 | dir="${apiRoot}"> |
| 500 | <classpath> |
| 501 | <fileset dir="${apiRoot}/eclipse/plugins"> |
| 502 | <include |
| 503 | name="**/org.eclipse.wtp.releng.tools.component.core*.jar" /> |
| 504 | </fileset> |
| 505 | <fileset dir="${apiRoot}/lib"> |
| 506 | <include |
| 507 | name="**/org.eclipse.core.contenttype*.jar" /> |
| 508 | <include name="**/org.eclipse.core.jobs*.jar" /> |
| 509 | <include name="**/org.eclipse.core.resources*.jar" /> |
| 510 | <include name="**/org.eclipse.core.runtime*.jar" /> |
| 511 | <include name="**/org.eclipse.equinox*.jar" /> |
| 512 | <include name="**/org.eclipse.jdt.core*.jar" /> |
| 513 | <include name="**/org.eclipse.jface.text*.jar" /> |
| 514 | <include name="**/org.eclipse.osgi*.jar" /> |
| 515 | <include name="**/org.eclipse.text*.jar" /> |
| 516 | <include |
| 517 | name="**/org.eclipse.equinox.launcher_*.jar" /> |
| 518 | </fileset> |
| 519 | </classpath> |
| 520 | <jvmarg value="-Xmx512M" /> |
david_williams | b93c1ee | 2008-02-10 21:27:40 +0000 | [diff] [blame] | 521 | <jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 522 | <arg line="${args}" /> |
| 523 | </java> |
| 524 | </target> |
| 525 | |
| 526 | <target |
| 527 | name="upload" |
| 528 | if="login"> |
| 529 | <mkdir dir="${build.home}/archives" /> |
| 530 | <zip |
| 531 | destfile="${build.home}/archives/${buildType}-${buildId}-${timestamp}.zip" |
| 532 | basedir="${build.home}/apiRoot/apiresults" /> |
| 533 | <condition |
| 534 | property="upload.path.1" |
| 535 | else="${login}@build.eclipse.org:~/downloads/webtools/downloads" |
| 536 | value="${login}@build.eclipse.org:~/downloads/webtools/committers"> |
| 537 | <isset property="build.committers" /> |
| 538 | </condition> |
| 539 | <condition |
| 540 | property="upload.path" |
| 541 | else="${upload.path.1}/drops/${buildType}-${buildId}-${timestamp}" |
| 542 | value="${upload.path.1}/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"> |
| 543 | <isset property="build.stream" /> |
| 544 | </condition> |
| 545 | <exec |
| 546 | executable="scp" |
| 547 | dir="${build.home}"> |
| 548 | <arg line="-r ./apiRoot/apiresults ${upload.path}" /> |
| 549 | </exec> |
| 550 | </target> |
| 551 | |
| 552 | <target |
| 553 | name="clean" |
| 554 | if="clean"> |
| 555 | <property |
david_williams | d4b1fd3 | 2008-01-02 04:16:52 +0000 | [diff] [blame] | 556 | file="${build.home}/${env.RELENG_BUILDER}/build.properties" /> |
david_williams | a3e4836 | 2007-08-22 04:21:50 +0000 | [diff] [blame] | 557 | <property |
| 558 | name="local.cache.dir" |
| 559 | value="${env.LOCAL_PREREQS_CACHE}" /> |
| 560 | <property |
| 561 | name="apiRoot" |
| 562 | value="${build.home}/apiRoot" /> |
| 563 | <property |
| 564 | name="wtp.dir" |
| 565 | value="${local.cache.dir}" /> |
| 566 | <delete |
| 567 | dir="${apiRoot}" |
| 568 | failonerror="false" /> |
| 569 | <delete failonerror="false"> |
| 570 | <fileset |
| 571 | dir="${wtp.dir}" |
| 572 | includes="wtp-*" /> |
| 573 | </delete> |
| 574 | </target> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 575 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 576 | </project> |