ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 1 | <project default="run" basedir="."> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 2 | <import file="buildDoc.xml"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 3 | <property file="buildAll.properties"/> |
| 4 | <property file="builddates.properties"/> |
| 5 | <property file="../../releng/maps/build.cfg"/> |
| 6 | |
| 7 | <path id="monitor.classpath"> |
| 8 | <fileset dir="../tools/monitor"> |
| 9 | <include name="*.jar" /> |
| 10 | </fileset> |
| 11 | </path> |
| 12 | |
| 13 | <taskdef name="wtp-monitor" classname="org.eclipse.wtp.releng.monitor.BuildMonitor" classpathref="monitor.classpath" /> |
| 14 | |
| 15 | <target name="init"> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 16 | <property name="buildDirectory" value="${build.home}/${build.current}-${build.component}-${buildType}/${build.directory}" /> |
| 17 | <property name="baseLocation" value="${build.home}/${build.current}-${build.component}-${buildType}/${base.location}" /> |
| 18 | <property name="testDir" value="${build.home}/${build.tests}-${build.component}-${buildType}" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 19 | <property name="perfDir" value="${build.home}/${build.perf.tests}-${buildType}" /> |
| 20 | <property name="bootclasspath" value="${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jsse.jar" /> |
| 21 | |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 22 | <condition property="doTrial"> |
| 23 | <equals arg1="${build.trial}" arg2="true" /> |
| 24 | </condition> |
| 25 | |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 26 | <condition property="buildBranch" value="R1.0"> |
| 27 | <equals arg1="${mapVersionTag}" arg2="HEAD" /> |
| 28 | </condition> |
| 29 | <condition property="buildBranch" value="R0.7 Maintenance"> |
| 30 | <equals arg1="${mapVersionTag}" arg2="R0_7_maintenance" /> |
| 31 | </condition> |
| 32 | |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 33 | <condition property="isEclipseFileTarGz" value="true"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 34 | <equals arg1="${baseos}" arg2="linux" /> |
| 35 | </condition> |
| 36 | <condition property="eclipseURL" value="${eclipseURL.linux}"> |
| 37 | <equals arg1="${baseos}" arg2="linux" /> |
| 38 | </condition> |
| 39 | <condition property="eclipseURL" value="${eclipseURL.win32}"> |
| 40 | <equals arg1="${baseos}" arg2="win32" /> |
| 41 | </condition> |
| 42 | <condition property="eclipseFile" value="${eclipseFile.linux}"> |
| 43 | <equals arg1="${baseos}" arg2="linux" /> |
| 44 | </condition> |
| 45 | <condition property="eclipseFile" value="${eclipseFile.win32}"> |
| 46 | <equals arg1="${baseos}" arg2="win32" /> |
| 47 | </condition> |
| 48 | |
| 49 | |
| 50 | |
| 51 | <mkdir dir="${buildDirectory}" /> |
| 52 | <mkdir dir="${build.home}/${build.drivers}"/> |
| 53 | |
| 54 | |
| 55 | |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 56 | <available file="${build.home}/${build.current}-${build.component}-${buildType}/${base.location}/startup.jar" property="eclipse.exists"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 57 | |
| 58 | <antcall target="getPreReq" /> |
| 59 | <antcall target="unzipEclipse" /> |
| 60 | |
| 61 | <available file="${buildDirectory}/label.properties" property="label.properties.exists"/> |
| 62 | <antcall target="create.label.properties"/> |
| 63 | <property file="${buildDirectory}/label.properties"/> |
| 64 | |
| 65 | |
| 66 | |
| 67 | <condition property="ftppush"> |
| 68 | <and> |
| 69 | <isset property="ftpUser"/> |
| 70 | <isset property="ftpPassword"/> |
| 71 | <not> |
| 72 | <isset property="nopush"/> |
| 73 | </not> |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 74 | <equals arg1="${build.trial}" arg2="false" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 75 | </and> |
| 76 | </condition> |
| 77 | |
| 78 | </target> |
| 79 | |
| 80 | <target name="unzipEclipse" unless="eclipse.exists"> |
| 81 | <antcall target="unzipEclipseSDK" /> |
| 82 | <antcall target="untarEclipseSDK" /> |
| 83 | |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 84 | <unzip dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${emfFile}" overwrite="true" /> |
| 85 | <unzip dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${gefFile}" overwrite="true" /> |
| 86 | <unzip dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${jemFile}" overwrite="true" /> |
| 87 | <unzip dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${junitFile}" overwrite="true" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 88 | </target> |
| 89 | |
| 90 | <target name="unzipEclipseSDK" unless="isEclipseFileTarGz"> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 91 | <unzip dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${eclipseFile}" overwrite="true" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 92 | </target> |
| 93 | <target name="untarEclipseSDK" if="isEclipseFileTarGz"> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 94 | <untar dest="${build.home}/${build.current}-${build.component}-${buildType}" src="${build.home}/${build.drivers}/${eclipseFile}" compression="gzip" overwrite="true" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 95 | </target> |
| 96 | |
| 97 | <target name="create.label.properties" unless="label.properties.exists"> |
| 98 | <mkdir dir="${buildDirectory}" /> |
| 99 | <tstamp/> |
| 100 | <property name="date" value="${DSTAMP}" /> |
| 101 | <property name="time" value="${TSTAMP}" /> |
| 102 | <property name="timestamp" value="${date}${time}" /> |
| 103 | <property name="buildType" value="I" /> |
| 104 | <property name="buildId" value="${buildType}${date}" /> |
| 105 | |
| 106 | <!--this naming convention used by php scripts on download server--> |
| 107 | <property name="buildLabel" value="${buildType}-${buildId}-${timestamp}" /> |
| 108 | |
| 109 | <!--store the build label information in a file--> |
| 110 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 111 | buildType=${buildType} |
| 112 | </echo> |
| 113 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 114 | buildId=${buildId} |
| 115 | </echo> |
| 116 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 117 | timestamp=${timestamp} |
| 118 | </echo> |
| 119 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 120 | buildLabel=${buildLabel} |
| 121 | </echo> |
| 122 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 123 | date=${date} |
| 124 | </echo> |
| 125 | <echo file="${buildDirectory}/label.properties" append="true" > |
| 126 | time=${time} |
| 127 | </echo> |
| 128 | </target> |
| 129 | |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 130 | <target name="run" depends="init"> |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 131 | <antcall target="runAll"/> |
| 132 | <antcall target="cleanUp"/> |
| 133 | </target> |
| 134 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 135 | |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 136 | <target name="runAll" depends="init"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 137 | <antcall target="buildAll"/> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 138 | <antcall target="buildDoc"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 139 | <!-- |
| 140 | <antcall target="checkpii"/> |
| 141 | --> |
| 142 | |
| 143 | <!-- first push --> |
| 144 | <antcall target="publish"/> |
| 145 | <antcall target="notify"> |
| 146 | <param name="monitor.template.file" value="../webpages/templateFiles/monitor-compile.php.template"/> |
| 147 | </antcall> |
| 148 | <antcall target="push"/> |
| 149 | |
| 150 | |
| 151 | <antcall target="test"/> |
| 152 | <antcall target="checkInternalReference"/> |
| 153 | |
| 154 | <!-- |
| 155 | <antcall target="eclipsePerf"/> |
| 156 | --> |
| 157 | <!-- after the tests push --> |
| 158 | <antcall target="publish"/> |
| 159 | <antcall target="notify" > |
| 160 | <param name="monitor.template.file" value="../webpages/templateFiles/monitor-tests.php.template"/> |
| 161 | </antcall> |
| 162 | <antcall target="push"/> |
| 163 | |
| 164 | <!-- |
| 165 | <antcall target="performance"/> |
| 166 | --> |
| 167 | <!-- after the tests push --> |
| 168 | <antcall target="publish"/> |
| 169 | <antcall target="notify" > |
| 170 | <param name="monitor.template.file" value="../webpages/templateFiles/monitor-all.php.template"/> |
| 171 | </antcall> |
| 172 | <antcall target="push"/> |
| 173 | |
| 174 | </target> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 175 | |
| 176 | <target name="runDocBuild" depends="init"> |
| 177 | <antcall target="buildDocStandalone"/> |
lmandel | 0b68cf3 | 2005-08-08 20:13:39 +0000 | [diff] [blame] | 178 | <!-- |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 179 | <antcall target="push"/> |
lmandel | 0b68cf3 | 2005-08-08 20:13:39 +0000 | [diff] [blame] | 180 | --> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 181 | </target> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 182 | |
| 183 | <target name="publishPush" depends="init"> |
| 184 | <antcall target="publish"/> |
| 185 | <!-- |
| 186 | <antcall target="cvsrlog"/> |
| 187 | --> |
| 188 | <antcall target="push"/> |
| 189 | </target> |
| 190 | |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 191 | <target name="build" depends="init"> |
| 192 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 193 | <antcall target="buildAll"/> |
lmandel | cb7fdf3 | 2005-07-28 20:49:03 +0000 | [diff] [blame] | 194 | <antcall target="buildDoc"/> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 195 | |
| 196 | <!-- |
| 197 | <antcall target="checkpii"/> |
| 198 | --> |
| 199 | |
| 200 | <antcall target="test"/> |
| 201 | <antcall target="checkInternalReference"/> |
| 202 | |
| 203 | <!-- |
| 204 | <antcall target="eclipsePerf"/> |
| 205 | <antcall target="performance"/> |
| 206 | --> |
| 207 | <antcall target="publish"/> |
| 208 | <!-- |
| 209 | <antcall target="cvsrlog"/> |
| 210 | --> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 211 | <antcall target="cleanUp"/> |
| 212 | </target> |
| 213 | |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 214 | <target name="buildAll" depends="init"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 215 | |
| 216 | <!-- Third party content --> |
| 217 | <antcall target="getThirdPartyContent"> |
| 218 | <param name="pluginsDir" value="${buildDirectory}/plugins"/> |
| 219 | </antcall> |
| 220 | |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 221 | <antcall target="tagReleng" /> |
ndai | 18eb65e | 2005-07-09 23:08:51 +0000 | [diff] [blame] | 222 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 223 | |
| 224 | <!-- WST TARGETS --> |
| 225 | <ant antfile="build.xml" target="main"> |
| 226 | <property name="component" value="wst"/> |
| 227 | </ant> |
| 228 | |
| 229 | <ant antfile="build.xml" target="main"> |
| 230 | <property name="component" value="wst-sdk"/> |
| 231 | </ant> |
| 232 | |
| 233 | <ant antfile="build.xml" target="main"> |
| 234 | <property name="component" value="wst.tests"/> |
| 235 | </ant> |
| 236 | |
| 237 | <ant antfile="build.xml" target="main"> |
| 238 | <property name="component" value="wst.perf.tests"/> |
| 239 | </ant> |
| 240 | |
| 241 | |
| 242 | <!-- JST TARGETS --> |
| 243 | <ant antfile="build.xml" target="main"> |
| 244 | <property name="component" value="jst"/> |
| 245 | </ant> |
| 246 | |
| 247 | <ant antfile="build.xml" target="main"> |
| 248 | <property name="component" value="jst-sdk"/> |
| 249 | </ant> |
| 250 | |
| 251 | <ant antfile="build.xml" target="main"> |
| 252 | <property name="component" value="jst.tests"/> |
| 253 | </ant> |
| 254 | |
| 255 | <ant antfile="build.xml" target="main"> |
| 256 | <property name="component" value="jst.perf.tests"/> |
| 257 | </ant> |
| 258 | </target> |
| 259 | |
| 260 | <target name="getThirdPartyContent"> |
| 261 | </target> |
| 262 | |
| 263 | <target name="checkPreReq" > |
| 264 | <available file="${build.home}/${build.drivers}/${eclipseFile}" property="eclipsefile.exists"/> |
| 265 | <available file="${build.home}/${build.drivers}/${emfFile}" property="emf.exists"/> |
| 266 | <available file="${build.home}/${build.drivers}/${gefFile}" property="gef.exists"/> |
| 267 | <available file="${build.home}/${build.drivers}/${jemFile}" property="jem.exists"/> |
| 268 | <available file="${build.home}/${build.drivers}/${junitFile}" property="testFrameWork.exists"/> |
| 269 | <available file="${build.home}/${build.drivers}/${tomcat50File}" property="tomcat50.exists"/> |
| 270 | <available file="${build.home}/${build.drivers}/${jonas432File}" property="jonas432.exists"/> |
| 271 | </target> |
| 272 | <target name="getPreReq" > |
| 273 | <available file="${build.home}/${build.drivers}/${eclipseFile}" property="eclipsefile.exists"/> |
| 274 | <available file="${build.home}/${build.drivers}/${emfFile}" property="emf.exists"/> |
| 275 | <available file="${build.home}/${build.drivers}/${gefFile}" property="gef.exists"/> |
| 276 | <available file="${build.home}/${build.drivers}/${jemFile}" property="jem.exists"/> |
| 277 | <available file="${build.home}/${build.drivers}/${junitFile}" property="testFrameWork.exists"/> |
| 278 | <available file="${build.home}/${build.drivers}/${tomcat50File}" property="tomcat50.exists"/> |
| 279 | <available file="${build.home}/${build.drivers}/${jonas432File}" property="jonas432.exists"/> |
| 280 | |
| 281 | <antcall target="getEclipse" /> |
| 282 | <antcall target="getEmf" /> |
| 283 | <antcall target="getGef" /> |
| 284 | <antcall target="getJem" /> |
| 285 | <antcall target="getTestFrameWork" /> |
| 286 | <antcall target="getTomcat50" /> |
| 287 | <antcall target="getJOnAS432" /> |
| 288 | </target> |
| 289 | |
| 290 | <target name="getEclipse" unless="eclipsefile.exists" > |
| 291 | <get src="${eclipseURL}" dest="${build.home}/${build.drivers}/${eclipseFile}" /> |
| 292 | </target> |
| 293 | <target name="getEmf" unless="emf.exists"> |
| 294 | <get src="${emfURL}" dest="${build.home}/${build.drivers}/${emfFile}" /> |
| 295 | </target> |
| 296 | <target name="getGef" unless="gef.exists"> |
| 297 | <get src="${gefURL}" dest="${build.home}/${build.drivers}/${gefFile}" /> |
| 298 | </target> |
| 299 | <target name="getJem" unless="jem.exists"> |
| 300 | <get src="${jemURL}" dest="${build.home}/${build.drivers}/${jemFile}" /> |
| 301 | </target> |
| 302 | <target name="getTestFrameWork" unless="testFrameWork.exists" > |
| 303 | <get src="${junitFileBuildURL}" dest="${build.home}/${build.drivers}/${junitFile}" /> |
| 304 | </target> |
| 305 | <target name="getTomcat50" unless="tomcat50.exists" > |
| 306 | <get src="${tomcat50URL}" dest="${build.home}/${build.drivers}/${tomcat50File}" /> |
| 307 | </target> |
| 308 | <target name="getJOnAS432" unless="jonas432.exists" > |
| 309 | <get src="${jonas432URL}" dest="${build.home}/${build.drivers}/${jonas432File}" /> |
| 310 | </target> |
| 311 | |
| 312 | <target name="getTomcat413" unless="tomcat413.exists" > |
| 313 | <get src="${tomcat413URL}" dest="${build.home}/${build.drivers}/${tomcat413File}" /> |
| 314 | </target> |
| 315 | |
| 316 | <target name="getAxis11" unless="axis11.exists" > |
| 317 | <get src="${axis11URL}" dest="${build.home}/${build.drivers}/${axis11File}" /> |
| 318 | </target> |
| 319 | <target name="getSoap231" unless="soap231.exists" > |
| 320 | <get src="${soap231URL}" dest="${build.home}/${build.drivers}/${soap231File}" /> |
| 321 | </target> |
| 322 | <target name="getWsil4j" unless="wsil4j.exists" > |
| 323 | <get src="${wsil4jURL}" dest="${build.home}/${build.drivers}/${wsil4jFile}" /> |
| 324 | </target> |
| 325 | <target name="getUDDI4j" unless="uddi4j.exists" > |
| 326 | <get src="${uddi4jURL}" dest="${build.home}/${build.drivers}/${uddi4jFile}" /> |
| 327 | </target> |
| 328 | <target name="getWSDL4j" unless="wsdl4j.exists" > |
| 329 | <get src="${wsdl4jURL}" dest="${build.home}/${build.drivers}/${wsdl4jFile}" /> |
| 330 | </target> |
| 331 | <target name="getJavaMail" unless="javamail.exists" > |
| 332 | <get src="${javaMailURL}" dest="${build.home}/${build.drivers}/${javaMailFile}" /> |
| 333 | </target> |
| 334 | <target name="getJAF" unless="jaf.exists" > |
| 335 | <get src="${jafURL}" dest="${build.home}/${build.drivers}/${jafFile}" /> |
| 336 | </target> |
| 337 | |
| 338 | <target name="cleanUp" if="clean" > |
| 339 | <!-- keep a local copy --> |
| 340 | <move todir="${build.home}/${local.publish}/${buildLabel}" failonerror="false" includeemptydirs="true" overwrite="true"> |
| 341 | <fileset dir="${buildDirectory}/${buildLabel}"/> |
| 342 | </move> |
| 343 | <delete dir="${buildDirectory}" failonerror="false"/> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 344 | <delete dir="${build.home}/${build.current}-${build.component}-${buildType}" failonerror="false"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 345 | <delete dir="${testDir}" failonerror="false"/> |
| 346 | <delete dir="${perfDir}" failonerror="false"/> |
| 347 | </target> |
| 348 | |
| 349 | |
| 350 | <target name="setupTestEclipse"> |
| 351 | <mkdir dir="${testDir}" /> |
| 352 | <mkdir dir="${testDir}/results" /> |
| 353 | <mkdir dir="${testDir}/results/consolelogs" /> |
| 354 | |
| 355 | <copy todir="${testDir}" overwrite="true"> |
| 356 | <fileset dir="../scripts/testScripts"> |
| 357 | </fileset> |
| 358 | </copy> |
| 359 | <copy file="buildAll.properties" tofile="${testDir}/buildAll.properties" overwrite="true"/> |
| 360 | <copy file="../../releng/maps/build.cfg" tofile="${testDir}/build.cfg" overwrite="true"/> |
| 361 | |
| 362 | <available file="${testDir}/eclipse/startup.jar" property="test.eclipse.exists"/> |
| 363 | |
| 364 | <antcall target="unzipTestEclipse" /> |
| 365 | </target> |
| 366 | |
| 367 | <target name="unzipTestEclipse" unless="test.eclipse.exists"> |
| 368 | <antcall target="unzipTestEclipseSDK" /> |
| 369 | <antcall target="untarTestEclipseSDK" /> |
| 370 | |
| 371 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${emfFile}" overwrite="true" /> |
| 372 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${gefFile}" overwrite="true" /> |
| 373 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${jemFile}" overwrite="true" /> |
| 374 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${junitFile}" overwrite="true" /> |
| 375 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${tomcat50File}" overwrite="true" /> |
| 376 | <untar dest="${testDir}" src="${build.home}/${build.drivers}/${jonas432File}" compression="gzip" overwrite="true" /> |
| 377 | |
| 378 | <condition property="oagis80.exists" value="true"> |
| 379 | <and> |
| 380 | <available file="${build.home}/${build.drivers}/${oagis80Release}" property="oagis80.release.exists"/> |
| 381 | <available file="${build.home}/${build.drivers}/${oagis80WSDL}" property="oagis80.wsdl.exists"/> |
| 382 | </and> |
| 383 | </condition> |
| 384 | <antcall target="unzipOAGIS80Files"/> |
| 385 | </target> |
| 386 | <target name="unzipTestEclipseSDK" unless="isEclipseFileTarGz"> |
| 387 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${eclipseFile}" overwrite="true" /> |
| 388 | </target> |
| 389 | <target name="untarTestEclipseSDK" if="isEclipseFileTarGz"> |
| 390 | <untar dest="${testDir}" src="${build.home}/${build.drivers}/${eclipseFile}" compression="gzip" overwrite="true" /> |
| 391 | </target> |
| 392 | <target name="unzipOAGIS80Files" if="oagis80.exists"> |
| 393 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${oagis80Release}" overwrite="true" /> |
| 394 | <unzip dest="${testDir}" src="${build.home}/${build.drivers}/${oagis80WSDL}" overwrite="true" /> |
| 395 | </target> |
| 396 | |
| 397 | <target name="runTestEclipse"> |
| 398 | <java classpath="${testDir}/eclipse/startup.jar" |
| 399 | fork="true" |
| 400 | classname="org.eclipse.core.launcher.Main" |
| 401 | failonerror="true" |
| 402 | timeout="3600000" |
| 403 | output="${testDir}/results/consolelogs/wtptestlog.txt" |
| 404 | dir="${testDir}"> |
| 405 | <jvmarg value="-Dosgi.ws=${basews}"/> |
| 406 | <jvmarg value="-Dosgi.os=${baseos}"/> |
| 407 | <jvmarg value="-Dosgi.arch=${basearch}"/> |
| 408 | <jvmarg value="-Dws=${basews}"/> |
| 409 | <jvmarg value="-Dos=${baseos}"/> |
| 410 | <jvmarg value="-Darch=${basearch}"/> |
ndai | d160cc7 | 2005-07-13 04:14:57 +0000 | [diff] [blame] | 411 | <jvmarg value="-Dnoclean=true"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 412 | <arg value="-propertyfile" /> |
| 413 | <arg value="test.properties" /> |
| 414 | <arg value="-application"/> |
| 415 | <arg value="org.eclipse.ant.core.antRunner"/> |
| 416 | <arg value="-file"/> |
| 417 | <arg value="test.xml"/> |
| 418 | <arg value="-logger"/> |
| 419 | <arg value="org.apache.tools.ant.DefaultLogger"/> |
| 420 | <arg value="${testTarget}"/> |
| 421 | <sysproperty key="build.home" value="${build.home}"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 422 | <sysproperty key="buildDirectory" value="${buildDirectory}"/> |
| 423 | <sysproperty key="baseLocation" value="${baseLocation}"/> |
| 424 | <sysproperty key="testDir" value="${testDir}"/> |
| 425 | <sysproperty key="perf.buildId" value="${buildType}${date}-${time}"/> |
| 426 | <sysproperty key="eclipseBuilderDirectory" value="${build.home}/${eclipse.builder}"/> |
| 427 | <sysproperty key="cloudscapeLib" value="${cloudscapeLib}"/> |
| 428 | </java> |
| 429 | </target> |
| 430 | |
| 431 | <target name="postRunTestEclipse"> |
| 432 | <copy todir="${buildDirectory}/${buildLabel}/testResults" overwrite="true"> |
| 433 | <fileset dir="${testDir}/results"> |
| 434 | <include name="**/*.*" /> |
| 435 | </fileset> |
| 436 | </copy> |
| 437 | </target> |
| 438 | |
| 439 | |
| 440 | <target name="setupPerformance"> |
| 441 | <available file="${buildDirectory}/${buildLabel}" property="buildLabel.exists"/> |
| 442 | <antcall target="unzipPerfPlugins"/> |
| 443 | <antcall target="setupCloudscape"/> |
| 444 | </target> |
| 445 | |
| 446 | <target name="unzipPerfPlugins"> |
| 447 | <property name="buildLabel" value="${buildType}-${buildId}-${timestamp}"/> |
| 448 | <mkdir dir="${buildDirectory}/${buildLabel}"/> |
| 449 | <available file="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" property="wtp.zip.exists"/> |
| 450 | <available file="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" property="wst.test.zip.exists"/> |
| 451 | <available file="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" property="jst.test.zip.exists"/> |
| 452 | <available file="${buildDirectory}/${buildLabel}/wtp-wst-perf-Tests-${buildId}.zip" property="wst.perf.zip.exists"/> |
| 453 | <available file="${buildDirectory}/${buildLabel}/wtp-jst-perf-Tests-${buildId}.zip" property="jst.perf.zip.exists"/> |
| 454 | <antcall target="getWtpZip"/> |
| 455 | <antcall target="getWstTestZip"/> |
| 456 | <antcall target="getJstTestZip"/> |
| 457 | <antcall target="getWstPerfZip"/> |
| 458 | <antcall target="getJstPerfZip"/> |
| 459 | <unzip dest="${perfDir}" src="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" overwrite="true" /> |
| 460 | <unzip dest="${perfDir}" src="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 461 | <unzip dest="${perfDir}" src="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 462 | <unzip dest="${perfDir}" src="${buildDirectory}/${buildLabel}/wtp-wst-perf-Tests-${buildId}.zip" overwrite="true" /> |
| 463 | <unzip dest="${perfDir}" src="${buildDirectory}/${buildLabel}/wtp-jst-perf-Tests-${buildId}.zip" overwrite="true" /> |
| 464 | </target> |
| 465 | |
| 466 | <target name="getWtpZip" unless="wtp.zip.exists"> |
| 467 | <get src="${webtoolsDownloadURL}/${buildLabel}/wtp-${buildId}.zip" dest="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" /> |
| 468 | </target> |
| 469 | <target name="getWstTestZip" unless="wst.test.zip.exists" > |
| 470 | <get src="${webtoolsDownloadURL}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" dest="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" /> |
| 471 | </target> |
| 472 | <target name="getJstTestZip" unless="jst.test.zip.exists" > |
| 473 | <get src="${webtoolsDownloadURL}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" dest="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" /> |
| 474 | </target> |
| 475 | <target name="getWstPerfZip" unless="wst.perf.zip.exists" > |
| 476 | <get src="${webtoolsDownloadURL}/${buildLabel}/wtp-wst-perf-Tests-${buildId}.zip" dest="${buildDirectory}/${buildLabel}/wtp-wst-perf-Tests-${buildId}.zip" /> |
| 477 | </target> |
| 478 | <target name="getJstPerfZip" unless="jst.perf.zip.exists" > |
| 479 | <get src="${webtoolsDownloadURL}/${buildLabel}/wtp-jst-perf-Tests-${buildId}.zip" dest="${buildDirectory}/${buildLabel}/wtp-jst-perf-Tests-${buildId}.zip" /> |
| 480 | </target> |
| 481 | |
| 482 | <target name="getEclipseAutomatedTestsFile" unless="eclipseAutomatedTestsFile.exists" > |
| 483 | <get src="${eclipseAutomatedTestsURL}" dest="${build.home}/${build.drivers}/${eclipseAutomatedTestsFile}" /> |
| 484 | </target> |
| 485 | |
| 486 | <target name="setupCloudscape"> |
| 487 | <property name="cloudscapePlugin" value="${perfDir}/eclipse/plugins/Cloudscape"/> |
| 488 | <mkdir dir="${cloudscapePlugin}"/> |
| 489 | <copy todir="${cloudscapePlugin}" overwrite="true"> |
| 490 | <fileset dir="${build.home}/${cloudscapeLib}"> |
| 491 | <include name="**/*.jar"/> |
| 492 | </fileset> |
| 493 | </copy> |
| 494 | <copy tofile="${cloudscapePlugin}/plugin.xml" file="templateFiles/cloudscapeplugin.xml.template" overwrite="true"/> |
| 495 | <replace dir="${perfDir}/eclipse/plugins" value="<import plugin="Cloudscape"/>"> |
| 496 | <include name="org.eclipse.test.performance_*/plugin.xml"/> |
| 497 | <replacetoken><![CDATA[<import plugin="Cloudscape" optional="true"/>]]></replacetoken> |
| 498 | </replace> |
| 499 | </target> |
| 500 | |
| 501 | |
| 502 | <target name="eclipsePerf" depends="init"> |
| 503 | <property name="perf.dbloc" value="${build.home}/eclipse-perf-db"/> |
| 504 | <property name="perf.config" value="wtpbuild"/> |
| 505 | <property name="perf.jvm" value="sun"/> |
| 506 | <property name="perf.db" value="-Declipse.perf.dbloc=${perf.dbloc}"/> |
| 507 | <property name="perf.config.base" value="-Declipse.perf.config=config=${perf.config};build=${buildType}${date}-0000;jvm=${perf.jvm}"/> |
| 508 | <property name="perf.config.wtp" value="-Declipse.perf.config=config=${perf.config};build=${buildType}${date}-${time};jvm=${perf.jvm}"/> |
| 509 | <property name="perf.assert" value="-Declipse.perf.assertAgainst=config=${perf.config};build=${buildType}${date}-0000;jvm=${perf.jvm}"/> |
| 510 | <available file="${build.home}/${build.drivers}/${eclipseAutomatedTestsFile}" property="eclipseAutomatedTestsFile.exists"/> |
| 511 | <antcall target="getEclipseAutomatedTestsFile"/> |
| 512 | <antcall target="eclipsePerf.wtp"/> |
| 513 | <antcall target="eclipsePerf.eclipse"/> |
| 514 | </target> |
| 515 | |
| 516 | <target name="eclipsePerf.wtp" if="use.wtp"> |
| 517 | <delete dir="${build.home}/${build.perf.tests}" failonerror="false"/> |
| 518 | <mkdir dir="${build.home}/${build.perf.tests}"/> |
| 519 | <unzip dest="${build.home}/${build.perf.tests}" src="${build.home}/${build.drivers}/${eclipseAutomatedTestsFile}" overwrite="true"/> |
| 520 | <unzip dest="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse" overwrite="true"> |
| 521 | <fileset dir="${build.home}/${build.perf.tests}/eclipse-testing"> |
| 522 | <include name="*.zip"/> |
| 523 | </fileset> |
| 524 | </unzip> |
| 525 | <antcall target="getPreReq"/> |
| 526 | <antcall target="setupTestEclipse"> |
| 527 | <param name="testDir" value="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse"/> |
| 528 | </antcall> |
| 529 | <mkdir dir="${buildDirectory}/${buildLabel}"/> |
| 530 | <available file="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" property="wtp.zip.exists"/> |
| 531 | <antcall target="getWtpZip"/> |
| 532 | <unzip dest="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse" src="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" overwrite="true" /> |
| 533 | <antcall target="setupCloudscape"> |
| 534 | <param name="perfDir" value="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse"/> |
| 535 | </antcall> |
| 536 | <copy file="eclipsePerf.xml" todir="${build.home}/${build.perf.tests}/eclipse-testing"/> |
| 537 | <ant antfile="${build.home}/${build.perf.tests}/eclipse-testing/eclipsePerf.xml" dir="${build.home}/${build.perf.tests}/eclipse-testing"> |
| 538 | <property name="os" value="${baseos}"/> |
| 539 | <property name="ws" value="${basews}"/> |
| 540 | <property name="arch" value="${basearch}"/> |
| 541 | <property name="test.target" value="performance"/> |
| 542 | <property name="performance.target.present" value="true"/> |
| 543 | <property name="extraVMargs" value="${perf.db} ${perf.config.wtp} ${perf.assert}"/> |
| 544 | </ant> |
| 545 | |
| 546 | <!-- Generate performance graphs --> |
| 547 | <mkdir dir="${buildDirectory}/${buildLabel}/eclipsePerfResults"/> |
| 548 | <ant antfile="testScripts/test.xml" target="genPerfGraphs"> |
| 549 | <property name="eclipseBuilderDirectory" value="${build.home}/${eclipse.builder}"/> |
| 550 | <property name="perf.ref.buildId" value="${buildType}${date}-0000"/> |
| 551 | <property name="buildId" value="${buildType}${date}-${time}"/> |
| 552 | <property name="results" value="${buildDirectory}/${buildLabel}/eclipsePerfResults"/> |
| 553 | </ant> |
| 554 | </target> |
| 555 | |
| 556 | <target name="eclipsePerf.eclipse" unless="use.wtp"> |
| 557 | <delete dir="${build.home}/${build.perf.tests}" failonerror="false"/> |
| 558 | <mkdir dir="${build.home}/${build.perf.tests}"/> |
| 559 | <unzip dest="${build.home}/${build.perf.tests}" src="${build.home}/${build.drivers}/${eclipseAutomatedTestsFile}" overwrite="true"/> |
| 560 | <unzip dest="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse" overwrite="true"> |
| 561 | <fileset dir="${build.home}/${build.perf.tests}/eclipse-testing"> |
| 562 | <include name="*.zip"/> |
| 563 | </fileset> |
| 564 | </unzip> |
| 565 | <antcall target="eclipsePerfWin"/> |
| 566 | <antcall target="eclipsePerfLinux"/> |
| 567 | <antcall target="setupCloudscape"> |
| 568 | <param name="perfDir" value="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse"/> |
| 569 | </antcall> |
| 570 | <copy file="eclipsePerf.xml" todir="${build.home}/${build.perf.tests}/eclipse-testing"/> |
| 571 | <ant antfile="${build.home}/${build.perf.tests}/eclipse-testing/eclipsePerf.xml" dir="${build.home}/${build.perf.tests}/eclipse-testing"> |
| 572 | <property name="os" value="${baseos}"/> |
| 573 | <property name="ws" value="${basews}"/> |
| 574 | <property name="arch" value="${basearch}"/> |
| 575 | <property name="test.target" value="performance"/> |
| 576 | <property name="performance.target.present" value="true"/> |
| 577 | <property name="extraVMargs" value="${perf.db} ${perf.config.base} ${perf.assert}"/> |
| 578 | </ant> |
| 579 | </target> |
| 580 | |
| 581 | <target name="eclipsePerfWin" unless="isEclipseFileTarGz"> |
| 582 | <unzip dest="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse" src="${build.home}/${build.drivers}/${eclipseFile}" overwrite="true"/> |
| 583 | </target> |
| 584 | |
| 585 | <target name="eclipsePerfLinux" if="isEclipseFileTarGz"> |
| 586 | <untar dest="${build.home}/${build.perf.tests}/eclipse-testing/test-eclipse" src="${build.home}/${build.drivers}/${eclipseFile}" compression="gzip" overwrite="true"/> |
| 587 | </target> |
| 588 | |
| 589 | <target name="performance" depends="init"> |
| 590 | <ant antfile="testScripts/test.xml" target="performance"> |
| 591 | <property file="testScripts/test.properties"/> |
| 592 | <property name="eclipse-home" value="${perfDir}/eclipse"/> |
| 593 | <property name="testDir" value="${perfDir}"/> |
| 594 | <property name="perf.buildId" value="${buildType}${date}-${time}"/> |
| 595 | <property name="eclipseBuilderDirectory" value="${build.home}/${eclipse.builder}"/> |
| 596 | <property name="os" value="${baseos}"/> |
| 597 | <property name="ws" value="${basews}"/> |
| 598 | <property name="arch" value="${basearch}"/> |
| 599 | </ant> |
| 600 | </target> |
| 601 | |
| 602 | <!-- |
| 603 | <target name="performance" depends="init"> |
| 604 | <delete dir="${perfDir}"/> |
| 605 | <mkdir dir="${perfDir}"/> |
| 606 | <antcall target="getPreReq"/> |
| 607 | <antcall target="setupTestEclipse"> |
| 608 | <param name="testDir" value="${perfDir}"/> |
| 609 | </antcall> |
| 610 | <antcall target="setupPerformance"/> |
| 611 | <antcall target="getThirdPartyContent"> |
| 612 | <param name="pluginsDir" value="${perfDir}/eclipse/plugins"/> |
| 613 | </antcall> |
| 614 | <antcall target="runTestEclipse"> |
| 615 | <param name="testTarget" value="performance"/> |
| 616 | <param name="testDir" value="${perfDir}"/> |
| 617 | <param name="testResults" value="perfResults"/> |
| 618 | </antcall> |
| 619 | <available property="global.php.exists" file="${perfDir}/results/graph/global.php"/> |
| 620 | <antcall target="global.addon"/> |
| 621 | <mkdir dir="${buildDirectory}/${buildLabel}/perf"/> |
| 622 | <copy todir="${buildDirectory}/${buildLabel}/perf" overwrite="true"> |
| 623 | <fileset dir="${perfDir}"> |
| 624 | <include name="results/**/*.*" /> |
| 625 | </fileset> |
| 626 | </copy> |
| 627 | </target> |
| 628 | --> |
| 629 | |
| 630 | <target name="global.addon" if="global.php.exists"> |
| 631 | <loadfile property="global.addon.content" srcFile="../webpages/templateFiles/performance.template"/> |
| 632 | <replace dir="${perfDir}/results/graph" value="${global.addon.content}"> |
| 633 | <include name="global.php"/> |
| 634 | <replacetoken><![CDATA[</html>]]></replacetoken> |
| 635 | </replace> |
| 636 | </target> |
| 637 | |
| 638 | <target name="test" depends="init"> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 639 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 640 | <antcall target="setupTestEclipse"/> |
| 641 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" overwrite="true" /> |
| 642 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 643 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 644 | |
| 645 | <!-- Third party content --> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 646 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 647 | <antcall target="getThirdPartyContent"> |
| 648 | <param name="pluginsDir" value="${testDir}/eclipse/plugins"/> |
| 649 | </antcall> |
| 650 | |
| 651 | <antcall target="runTestEclipse"> |
| 652 | <param name="testTarget" value="all"/> |
| 653 | </antcall> |
| 654 | <antcall target="postRunTestEclipse"> |
| 655 | <param name="testTarget" value="all"/> |
| 656 | </antcall> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 657 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 658 | </target> |
| 659 | |
| 660 | |
| 661 | <target name="checkpii"> |
| 662 | <property name="piiDir" value="${buildDirectory}/piitools"/> |
| 663 | <property name="pii.core" value="releng.builder/tools/piitools/org.eclipse.wtp.releng.tools.pii.core"/> |
| 664 | <property name="piiOutputDir" value="${buildDirectory}/${buildLabel}/piitools"/> |
| 665 | <cvs |
| 666 | cvsRoot=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" |
| 667 | package="${pii.core}" |
| 668 | dest="${piiDir}" |
| 669 | command="export" |
| 670 | tag="HEAD" |
| 671 | /> |
| 672 | <mkdir dir="${piiDir}/${pii.core}/bin"/> |
| 673 | <javac |
| 674 | srcdir="${piiDir}/${pii.core}/src" |
| 675 | destdir="${piiDir}/${pii.core}/bin" |
| 676 | fork="true"> |
| 677 | </javac> |
| 678 | <java classname="org.eclipse.wtp.releng.tools.pii.internal.KeyUtils" fork="true"> |
| 679 | <arg line="${buildDirectory}/plugins ${piiOutputDir}/unused build.properties javadoc.properties" /> |
| 680 | <classpath> |
| 681 | <pathelement path="${piiDir}/${pii.core}/bin"/> |
| 682 | </classpath> |
| 683 | </java> |
| 684 | </target> |
| 685 | |
| 686 | |
| 687 | <target name="preCheckAPI" if="piagent_filter_txt.exists"> |
| 688 | <condition property="piAgentURL" value="${piAgentURL.linux}"> |
| 689 | <equals arg1="${baseos}" arg2="linux" /> |
| 690 | </condition> |
| 691 | <condition property="piAgentURL" value="${piAgentURL.win32}"> |
| 692 | <equals arg1="${baseos}" arg2="win32" /> |
| 693 | </condition> |
| 694 | <condition property="piAgentFile" value="${piAgentFile.linux}"> |
| 695 | <equals arg1="${baseos}" arg2="linux" /> |
| 696 | </condition> |
| 697 | <condition property="piAgentFile" value="${piAgentFile.win32}"> |
| 698 | <equals arg1="${baseos}" arg2="win32" /> |
| 699 | </condition> |
| 700 | <condition property="os.linux"> |
| 701 | <equals arg1="${baseos}" arg2="linux" /> |
| 702 | </condition> |
| 703 | <condition property="os.win32"> |
| 704 | <equals arg1="${baseos}" arg2="win32" /> |
| 705 | </condition> |
| 706 | <available file="${build.home}/${build.drivers}/${piAgentFile}" property="piAgent.exists"/> |
| 707 | <antcall target="getPIAgent"/> |
| 708 | <antcall target="runPIAgentLinux"/> |
| 709 | <antcall target="runPIAgentWin32"/> |
| 710 | <antcall target="runPIAgent"/> |
| 711 | </target> |
| 712 | |
| 713 | <target name="getPIAgent" unless="piAgent.exists"> |
| 714 | <get src="${piAgentURL}" dest="${build.home}/${build.drivers}/${piAgentFile}"/> |
| 715 | </target> |
| 716 | |
| 717 | <target name="runPIAgentLinux" if="os.linux"> |
| 718 | <unzip dest="${apitoolsDir}" src="${build.home}/${build.drivers}/${piAgentFile}" overwrite="true"> |
| 719 | <patternset> |
| 720 | <include name="**/*.so"/> |
| 721 | </patternset> |
| 722 | </unzip> |
| 723 | <move todir="${apitoolsDir}" flatten="true"> |
| 724 | <fileset dir="${apitoolsDir}/lib"/> |
| 725 | </move> |
| 726 | </target> |
| 727 | |
| 728 | <target name="runPIAgentWin32" if="os.win32"> |
| 729 | <unzip dest="${apitoolsDir}" src="${build.home}/${build.drivers}/${piAgentFile}" overwrite="true"> |
| 730 | <patternset> |
| 731 | <include name="**/*.dll"/> |
| 732 | </patternset> |
| 733 | </unzip> |
| 734 | <move todir="${apitoolsDir}" flatten="true"> |
| 735 | <fileset dir="${apitoolsDir}/bin"/> |
| 736 | </move> |
| 737 | </target> |
| 738 | |
| 739 | <target name="runPIAgent"> |
| 740 | <antcall target="setupTestEclipse"/> |
| 741 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" overwrite="true" /> |
| 742 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 743 | <unzip dest="${testDir}" src="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" overwrite="true" /> |
| 744 | <property name="piAgentOutputDir" value="${apitoolsDir}/piagentoutput"/> |
| 745 | <mkdir dir="${piAgentOutputDir}"/> |
| 746 | <property name="LD_LIBRARY_PATH" value="${apitoolsDir}"/> |
| 747 | <property name="java.library.path" value="${apitoolsDir}"/> |
| 748 | <antcall target="runPIAgent2"> |
| 749 | <param name="output" value="${piAgentOutputDir}/j2ee.output1.trcxml"/> |
| 750 | <param name="testPluginName" value="org.eclipse.jst.j2ee.core.tests"/> |
| 751 | <param name="className" value="org.eclipse.jst.j2ee.core.tests.bvt.AutomatedBVT"/> |
| 752 | <param name="extraVMargs" value="-DXmx700M"/> |
| 753 | </antcall> |
| 754 | <antcall target="runPIAgent2"> |
| 755 | <param name="output" value="${piAgentOutputDir}/j2ee.output2.trcxml"/> |
| 756 | <param name="testPluginName" value="org.eclipse.jst.j2ee.core.tests"/> |
| 757 | <param name="className" value="org.eclipse.jst.j2ee.core.api.test.AutomatedAPIBVT"/> |
| 758 | <param name="extraVMargs" value="-DXmx700M"/> |
| 759 | </antcall> |
| 760 | <antcall target="runPIAgent2"> |
| 761 | <param name="output" value="${piAgentOutputDir}/j2ee.output3.trcxml"/> |
| 762 | <param name="testPluginName" value="org.eclipse.jst.j2ee.tests"/> |
| 763 | <param name="className" value="org.eclipse.jst.j2ee.core.tests.bvt.AutomatedBVT"/> |
| 764 | <param name="extraVMargs" value="-Dorg.eclipse.jst.server.jonas.432=${testDir}/JONAS_4_3_2"/> |
| 765 | </antcall> |
| 766 | </target> |
| 767 | |
| 768 | <target name="runPIAgent2"> |
| 769 | <delete dir="${apitoolsDir}/workspace"/> |
| 770 | <exec dir="${apitoolsDir}" executable="java"> |
| 771 | <env key="LD_LIBRARY_PATH" value="${LD_LIBRARY_PATH}"/> |
| 772 | <env key="java.library.path" value="${java.library.path}"/> |
| 773 | <arg line="-cp ${testDir}/eclipse/startup.jar -XrunpiAgent:server=standalone,profile=${apitoolsDir}/${component.core}/apiagent/piagent_options.txt,filters=${apitoolsDir}/${component.core}/apiagent/piagent_filters.txt,file=${output} -Xmx512M ${extraVMargs} org.eclipse.core.launcher.Main -application org.eclipse.test.coretestapplication -data ${apitoolsDir}/workspace -testPluginName ${testPluginName} -className ${className} -os ${baseos} -ws ${basews} -arch ${basearch}"/> |
| 774 | </exec> |
| 775 | </target> |
| 776 | |
| 777 | <target name="checkInternalReference"> |
| 778 | <property name="apitoolsDir" value="${buildDirectory}/apitools"/> |
| 779 | <property name="apiProgressDir" value="releng.builder/tools/apitools/api_progress/1.0"/> |
| 780 | <property name="apiFinalDir" value="releng.builder/tools/apitools/api_progress/1.0_Final"/> |
| 781 | <property name="component.xml" value="releng.builder/tools/apitools/components"/> |
| 782 | <property name="component.core" value="releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core"/> |
| 783 | <mkdir dir="${apitoolsDir}"/> |
| 784 | <cvs |
| 785 | cvsRoot=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" |
| 786 | package="${apiProgressDir}" |
| 787 | dest="${apitoolsDir}" |
| 788 | command="export" |
| 789 | tag="HEAD" |
| 790 | /> |
| 791 | <cvs |
| 792 | cvsRoot=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" |
| 793 | package="${apiFinalDir}" |
| 794 | dest="${apitoolsDir}" |
| 795 | command="export" |
| 796 | tag="HEAD" |
| 797 | /> |
| 798 | <!-- |
| 799 | <cvs |
| 800 | cvsRoot=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" |
| 801 | package="${component.xml}" |
| 802 | dest="${apitoolsDir}" |
| 803 | command="export" |
| 804 | tag="HEAD" |
| 805 | /> |
| 806 | --> |
| 807 | <cvs |
| 808 | cvsRoot=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" |
| 809 | package="${component.core}" |
| 810 | dest="${apitoolsDir}" |
| 811 | command="export" |
| 812 | tag="HEAD" |
| 813 | /> |
| 814 | <mkdir dir="${apitoolsDir}/${component.core}/bin" /> |
| 815 | <javac |
| 816 | srcdir="${apitoolsDir}/${component.core}/src" |
| 817 | destdir="${apitoolsDir}/${component.core}/bin" |
| 818 | fork="true"> |
| 819 | <classpath> |
| 820 | <fileset dir="${baseLocation}/plugins"> |
| 821 | <include name="**/*.jar" /> |
| 822 | </fileset> |
| 823 | </classpath> |
| 824 | </javac> |
| 825 | <copy todir="${apitoolsDir}/${component.core}/bin" overwrite="true"> |
| 826 | <fileset dir="${apitoolsDir}/${component.core}/src"> |
| 827 | <exclude name="**/*.java" /> |
| 828 | </fileset> |
| 829 | </copy> |
| 830 | <jar |
| 831 | destfile="${apitoolsDir}/${component.core}/componentcore.jar" |
| 832 | basedir="${apitoolsDir}/${component.core}/bin" |
| 833 | /> |
| 834 | <property name="piagent_filter_txt" value="${apitoolsDir}/${component.core}/apiagent/piagent_filters.txt"/> |
| 835 | <antcall target="runAPIToolsEmitter"> |
| 836 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.piagent.PIAgentFiltersEmitter"/> |
| 837 | <param name="args" value="-eclipseDirs ${buildDirectory}/plugins -compXMLDirs ${buildDirectory}/plugins -outputFile ${piagent_filter_txt} -includes org.eclipse.jst.j2ee."/> |
| 838 | </antcall> |
| 839 | <available file="${piagent_filter_txt}" property="piagent_filter_txt.exists"/> |
| 840 | <!-- |
| 841 | <antcall target="preCheckAPI"/> |
| 842 | --> |
| 843 | <unzip src="${buildDirectory}/${buildLabel}/wtp-${buildId}.zip" dest="${apitoolsDir}/base"/> |
| 844 | <unzip src="${buildDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildId}.zip" dest="${apitoolsDir}/test"/> |
| 845 | <unzip src="${buildDirectory}/${buildLabel}/wtp-jst-Automated-Tests-${buildId}.zip" dest="${apitoolsDir}/test"/> |
| 846 | <mkdir dir="${apitoolsDir}/${component.xml}"/> |
| 847 | <antcall target="runAPIToolsEmitter"> |
| 848 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.model.ComponentEmitter"/> |
| 849 | <param name="args" value="-eclipseDir ${baseLocation}/plugins -compXMLDir ${apitoolsDir}/${component.xml}"/> |
| 850 | </antcall> |
| 851 | <antcall target="runAPIToolsEmitter"> |
| 852 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.violation.ComponentViolationEmitter"/> |
| 853 | <param name="args" value="-eclipseDir ${apitoolsDir}/base/eclipse/plugins -compXMLDir ${buildDirectory}/plugins -compRefDir ${apitoolsDir}/${component.xml} -compVioDir ${buildDirectory}/${buildLabel}/apitools -include org.eclipse. -exclude org.eclipse.wst. org.eclipse.jst. -genHTML -genUsage -debug"/> |
| 854 | </antcall> |
| 855 | <antcall target="runAPIToolsEmitter"> |
| 856 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.violation.ComponentViolationEmitter"/> |
| 857 | <param name="args" value="-eclipseDir ${apitoolsDir}/base/eclipse/plugins -compXMLDir ${buildDirectory}/plugins -compRefDir ${apitoolsDir}/${component.xml} -compVioDir ${buildDirectory}/${buildLabel}/apitools2 -include org.eclipse.wst. org.eclipse.jst. -genHTML -genUsage -debug"/> |
| 858 | </antcall> |
| 859 | <antcall target="runAPIToolsEmitter"> |
| 860 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.violation.ComponentViolationEmitter"/> |
| 861 | <param name="args" value="-eclipseDir ${apitoolsDir}/base/eclipse/plugins -compXMLDir ${buildDirectory}/plugins -compRefDir ${apitoolsDir}/${component.xml} -compVioDir ${buildDirectory}/${buildLabel}/apitools3 -include org.eclipse.wst. org.eclipse.jst. -exclude *.internal.provisional.* -genHTML -genUsage -debug"/> |
| 862 | </antcall> |
| 863 | <tstamp/> |
| 864 | <antcall target="runAPIToolsEmitter"> |
| 865 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.api.testcoverage.APITestCoverageEmitter"/> |
| 866 | <param name="args" value="-eclipseDir ${apitoolsDir}/base/eclipse/plugins -testDir ${apitoolsDir}/test -compXMLDir ${buildDirectory}/plugins -compAPIDir ${buildDirectory}/${buildLabel}/apitools -timestamp ${DSTAMP} -apiAgentOutput ${buildDirectory}/apitools/piagentoutput -genHTML -genAPI"/> |
| 867 | </antcall> |
| 868 | <antcall target="runAPIToolsEmitter"> |
| 869 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.api.usecoverage.APIUseCoverageEmitter"/> |
| 870 | <param name="args" value="-eclipseDir ${apitoolsDir}/base/eclipse/plugins -testDir ${apitoolsDir}/base/eclipse/plugins -compXMLDir ${buildDirectory}/plugins -compAPIDir ${buildDirectory}/${buildLabel}/apitools -genHTML"/> |
| 871 | </antcall> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 872 | <copy todir="${build.home}/${build.current}-${build.component}-${buildType}/eclipse/plugins/org.eclipse.wtp.releng.tools.component.core" overwrite="true"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 873 | <fileset dir="${apitoolsDir}/${component.core}"/> |
| 874 | </copy> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 875 | <java classpath="${build.home}/${build.current}-${build.component}-${buildType}/eclipse/startup.jar" |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 876 | fork="true" |
| 877 | classname="org.eclipse.core.launcher.Main" |
| 878 | failonerror="false" |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 879 | dir="${build.home}/${build.current}-${build.component}-${buildType}"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 880 | <jvmarg value="-Dosgi.ws=${basews}"/> |
| 881 | <jvmarg value="-Dosgi.os=${baseos}"/> |
| 882 | <jvmarg value="-Dosgi.arch=${basearch}"/> |
| 883 | <jvmarg value="-Dws=${basews}"/> |
| 884 | <jvmarg value="-Dos=${baseos}"/> |
| 885 | <jvmarg value="-Darch=${basearch}"/> |
| 886 | <jvmarg value="-Dnoclean=true"/> |
| 887 | <arg value="-application"/> |
| 888 | <arg value="org.eclipse.wtp.releng.tools.component.core.JavadocCoverageEmitter"/> |
| 889 | <sysproperty key="compXMLDir" value="${buildDirectory}/plugins"/> |
| 890 | <sysproperty key="compAPIDir" value="${buildDirectory}/${buildLabel}/apitools"/> |
| 891 | <sysproperty key="srcDir" value="${buildDirectory}/plugins"/> |
| 892 | <sysproperty key="outputDir" value="${buildDirectory}/${buildLabel}/apitools"/> |
| 893 | </java> |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 894 | <delete dir="${build.home}/${build.current}-${build.component}-${buildType}/eclipse/plugins/org.eclipse.wtp.releng.tools.component.core"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 895 | <antcall target="runAPIToolsEmitter"> |
| 896 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.api.compatibility.APICompatibilityEmitter"/> |
| 897 | <param name="args" value="-currAPIIndex ${buildDirectory}/${buildLabel}/apitools/index-comp-summary.xml -refAPIIndex ${apitoolsDir}/${apiFinalDir}/index-comp-summary.xml -outputDir ${buildDirectory}/${buildLabel}/apitools -genHTML"/> |
| 898 | </antcall> |
| 899 | <antcall target="runAPIToolsEmitter"> |
| 900 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.api.progress.APIProgressEmitter"/> |
| 901 | <param name="args" value="-compIndex ${buildDirectory}/${buildLabel}/apitools/index-comp-summary.xml -refCompIndexDir ${apitoolsDir}/${apiProgressDir} -eclipseDir ${apitoolsDir}/base/eclipse/plugins -compXMLDir ${buildDirectory}/plugins -outputDir ${buildDirectory}/${buildLabel}/apitools"/> |
| 902 | </antcall> |
| 903 | <antcall target="runAPIToolsEmitter"> |
| 904 | <param name="emitterClass" value="org.eclipse.wtp.releng.tools.component.api.violation.ComponentAPIViolationEmitter"/> |
| 905 | <param name="args" value="-compXMLDirs ${buildDirectory}/plugins -compXMLRefDirs ${apitoolsDir}/${component.xml} -eclipseDirs ${apitoolsDir}/base/eclipse/plugins -includes org.eclipse. -outputDir ${buildDirectory}/${buildLabel}/apitools"/> |
| 906 | </antcall> |
| 907 | <mkdir dir="${buildDirectory}/${buildLabel}/apitools/componentxmls"/> |
| 908 | <copy todir="${buildDirectory}/${buildLabel}/apitools/componentxmls" overwrite="true"> |
| 909 | <fileset dir="${buildDirectory}/plugins"> |
| 910 | <include name="**/component.xml"/> |
| 911 | </fileset> |
| 912 | </copy> |
| 913 | </target> |
| 914 | |
| 915 | <target name="runAPIToolsEmitter"> |
| 916 | <java classname="${emitterClass}" fork="true" maxmemory="256m"> |
| 917 | <arg line="${args}" /> |
| 918 | <classpath> |
| 919 | <pathelement path="${apitoolsDir}/${component.core}/bin"/> |
| 920 | <fileset dir="${baseLocation}/plugins"> |
| 921 | <include name="**/*.jar" /> |
| 922 | </fileset> |
| 923 | </classpath> |
| 924 | </java> |
| 925 | </target> |
| 926 | |
| 927 | <target name="getInternalReference" unless="internalReference.exists" > |
| 928 | <get src="${internalRefToolURL}" dest="${build.home}/${build.drivers}/${internalRefToolFile}" /> |
| 929 | </target> |
| 930 | |
| 931 | |
| 932 | <target name="publish" depends="init"> |
| 933 | <property name="publish.xml" value="./publish.xml" /> |
| 934 | |
| 935 | <property name="indexFileName" value="index.php" /> |
| 936 | <property name="result" value="${buildDirectory}/${buildLabel}" /> |
| 937 | <condition property="clearWstArchives" value="true" > |
| 938 | <equals arg1="${buildType}" arg2="N" /> |
| 939 | </condition> |
| 940 | <condition property="indexTemplateFilename" value="index.html.N.template" > |
| 941 | <equals arg1="${buildType}" arg2="N" /> |
| 942 | </condition> |
| 943 | <condition property="indexTemplateFilename" value="index.html.template" > |
| 944 | <or> |
| 945 | <equals arg1="${buildType}" arg2="I" /> |
| 946 | <equals arg1="${buildType}" arg2="S" /> |
| 947 | <equals arg1="${buildType}" arg2="R" /> |
| 948 | <equals arg1="${buildType}" arg2="M" /> |
| 949 | </or> |
| 950 | </condition> |
| 951 | <antcall target="clearWST" /> |
| 952 | |
| 953 | <ant antfile="${publish.xml}" dir="${basedir}"> |
lmandel | ac8b517 | 2005-08-08 21:30:36 +0000 | [diff] [blame] | 954 | <property name="dropTokenList" value="%wtpruntime%,%wtpsdk%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%" /> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 955 | <property name="isBuildTested" value="false" /> |
| 956 | <property name="indexTemplateFilename" value="${indexTemplateFilename}" /> |
| 957 | </ant> |
| 958 | |
| 959 | <!-- Get the build map over for the results to point to. --> |
| 960 | <copy file="${buildDirectory}/directory.txt" tofile="${result}/directory.txt"/> |
| 961 | |
| 962 | <checksum > |
| 963 | <fileset dir="${result}"> |
| 964 | <include name="*.zip"/> |
| 965 | </fileset> |
| 966 | </checksum> |
| 967 | |
| 968 | </target> |
| 969 | |
| 970 | <target name="clearWST" if="clearWstArchives"> |
| 971 | |
| 972 | <delete> |
| 973 | <fileset dir="${buildDirectory}/${buildLabel}"> |
| 974 | <include name="wtp-wst-${buildId}.zip"/> |
| 975 | <include name="wtp-wst-${buildId}.zip.MD5"/> |
| 976 | <include name="wtp-wst-sdk-${buildId}.zip"/> |
| 977 | <include name="wtp-wst-sdk-${buildId}.zip.MD5"/> |
ndai | bccd41f | 2005-08-08 19:15:03 +0000 | [diff] [blame] | 978 | <include name="wtp-wst-doc-${buildId}.zip"/> |
| 979 | <include name="wtp-wst-doc-${buildId}.zip.MD5"/> |
| 980 | <include name="wtp-wst-sdk-doc-${buildId}.zip"/> |
| 981 | <include name="wtp-wst-sdk-doc-${buildId}.zip.MD5"/> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 982 | </fileset> |
| 983 | </delete> |
| 984 | </target> |
| 985 | |
| 986 | |
| 987 | <target name="cvsrlog" depends="init"> |
| 988 | <property name="rlog.xml" value="./rlog.xml" /> |
| 989 | |
| 990 | <property name="rlog.home" value="../tools/cvstools/org.eclipse.wtp.releng.cvs.tools" /> |
| 991 | <property name="rlog.log.dir" value="${buildDirectory}/${buildLabel}/rlogxml" /> |
| 992 | <property name="rlog.html.dir" value="${buildDirectory}/${buildLabel}/rloghtml" /> |
| 993 | |
| 994 | <property name="buildType" value="${buildType}" /> |
| 995 | <property name="cvsRoot" value="${cvsRoot}" /> |
| 996 | <property name="cvsServer" value="${cvsServer}" /> |
| 997 | <property name="cvsProtocol" value="${cvsProtocol}" /> |
| 998 | <property name="cvsUser" value="${cvsUser}" /> |
| 999 | |
| 1000 | <ant antfile="${rlog.xml}" dir="${basedir}"> |
| 1001 | <property name="rlog.home" value="${rlog.home}" /> |
| 1002 | <property name="rlog.log.dir" value="${rlog.log.dir}" /> |
| 1003 | <property name="rlog.html.dir" value="${rlog.html.dir}" /> |
| 1004 | </ant> |
| 1005 | |
| 1006 | </target> |
| 1007 | |
| 1008 | <target name="push" depends="init,pushftp"> |
| 1009 | |
| 1010 | |
| 1011 | </target> |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | <target name="pushftp" if="ftppush"> |
| 1016 | <property name="remoteDirectory" value="${ftpRemoteDirectory}"/> |
| 1017 | <echo message="FTP to: ${remoteDirectory}/${buildLabel}"/> |
| 1018 | <exec executable="rsync"> |
| 1019 | <arg line="-e ssh -Cavz ${buildDirectory}/${buildLabel} ${ftpUser}@${ftpServer}:${remoteDirectory}" /> |
| 1020 | </exec> |
| 1021 | |
| 1022 | </target> |
| 1023 | |
| 1024 | <!-- ================================= |
| 1025 | target: notify |
| 1026 | ================================= --> |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 1027 | <target name="notify" depends="init" description="wtp monitor" unless="doTrial"> |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 1028 | <wtp-monitor |
| 1029 | hostname="127.0.0.1" |
| 1030 | sender="buildmaster@lomboz.org" |
| 1031 | recipients="wtp-releng@eclipse.org" |
ndai | a1ebdb9 | 2005-08-09 20:23:24 +0000 | [diff] [blame^] | 1032 | prefix="[wtp-${buildBranch}-build]" |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 1033 | buildLabel="${buildLabel}" |
| 1034 | dropTokenList="%wst%,%jst%,%wstsdk%,%jstsdk%" |
| 1035 | xmlDirectoryName="${buildDirectory}/${buildLabel}/testResults/xml" |
| 1036 | testResultsTemplateFileName="${monitor.template.file}" |
| 1037 | compileLogsDirectoryName="${buildDirectory}/${buildLabel}/compilelogs" |
| 1038 | testManifestFileName="${basedir}/../components/testManifest.xml" |
| 1039 | /> |
| 1040 | |
| 1041 | </target> |
ndai | cbf7ef3 | 2005-07-16 05:47:34 +0000 | [diff] [blame] | 1042 | |
| 1043 | |
| 1044 | <!-- - - - - - - - - - - - - - - - - - |
| 1045 | target: tagReleng |
| 1046 | - - - - - - - - - - - - - - - - - --> |
| 1047 | <target name="tagReleng" unless="doTrial"> |
| 1048 | <ant antfile="build.xml" target="main"> |
| 1049 | <property name="component" value="releng"/> |
| 1050 | </ant> |
| 1051 | </target> |
| 1052 | |
ndai | a5b2766 | 2005-07-09 19:41:27 +0000 | [diff] [blame] | 1053 | </project> |