Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 1 | <project name="Helper targets" default="noDefault" basedir="." > |
| 2 | <property name="postingDirectory" value="${buildDirectory}" /> |
| 3 | <property name="publishingContent" value="${eclipse.build.configs}/../publishingFiles"/> |
| 4 | |
| 5 | <!-- ===================================================================== --> |
| 6 | <!-- Set of helper targets for building the Eclipse SDK --> |
| 7 | <!-- ===================================================================== --> |
| 8 | <target name="discoverOS"> |
| 9 | <condition property="onUnix"> |
| 10 | <and> |
| 11 | <os family="unix" /> |
| 12 | </and> |
| 13 | </condition> |
| 14 | <condition property="onWindows"> |
| 15 | <and> |
| 16 | <os family="windows" /> |
| 17 | </and> |
| 18 | </condition> |
| 19 | </target> |
| 20 | |
| 21 | <target name="printWarnings" if="onWindows" depends="discoverOS"> |
| 22 | <echo message="The UNIX versions of your build output will be invalid. Windows will not preserve symbolic links and permissions on executable files." /> |
| 23 | </target> |
| 24 | |
| 25 | <target name="setLabels"> |
| 26 | <!--required--> |
| 27 | <!-- setup the label.properties file packaged in the source builds. --> |
| 28 | <!--Set this property to empty string--> |
| 29 | <property name="buildType" value="" /> |
| 30 | <tstamp> |
| 31 | <format property="TODAY" pattern="MMMM d, yyyy" /> |
| 32 | <format property="TSTAMP" pattern="HHmm" /> |
| 33 | </tstamp> |
| 34 | <copy file="label.properties.template" tofile="${buildDirectory}/label.properties" overwrite="true" /> |
| 35 | <replace file="${buildDirectory}/label.properties" token="@builddate@" value="${TODAY}" /> |
| 36 | <replace file="${buildDirectory}/label.properties" token="@buildtype@" value="${buildType}" /> |
| 37 | <replace file="${buildDirectory}/label.properties" token="@ds@" value="${timestamp}" /> |
| 38 | <replace file="${buildDirectory}/label.properties" token="@buildid@" value="${buildId}" /> |
| 39 | </target> |
| 40 | |
| 41 | <target name="generateChecksum" unless="skipChecksum"> |
| 42 | <checksum file="${archiveFullPath}" property="md5" /> |
| 43 | <echo message="${md5} *${downloadFile}" file="${postingDirectory}/${buildLabel}/checksum/${downloadFile}.md5" /> |
| 44 | </target> |
| 45 | |
| 46 | <target name="publish" description="Preparing to post the build..."> |
| 47 | <!--post clickThroughs--> |
| 48 | <copy todir="${postingDirectory}/${buildLabel}"> |
| 49 | <fileset dir="${buildDirectory}/maps/org.eclipse.releng" includes="clickThroughs/" /> |
| 50 | </copy> |
| 51 | |
| 52 | <!--post directory.txt--> |
| 53 | <copy file="${buildDirectory}/directory.txt" todir="${postingDirectory}/${buildLabel}" /> |
| 54 | |
| 55 | <!--post instructions on automated testing--> |
| 56 | <copy file="${eclipse.build.configs}/sdk.tests/testScripts/readme.html" tofile="${postingDirectory}/${buildLabel}/automatedtesting.html" /> |
| 57 | <copy file="${buildDirectory}/plugins/org.eclipse.test/testframework.html" tofile="${postingDirectory}/${buildLabel}/testframework.html" /> |
| 58 | |
| 59 | <antcall target="generateEclipseIndex" /> |
| 60 | |
| 61 | <!--get static files required in the buildLabel directory--> |
| 62 | <copy todir="${postingDirectory}/${buildLabel}"> |
| 63 | <fileset dir="${publishingContent}/staticDropFiles" /> |
| 64 | </copy> |
| 65 | |
| 66 | <!--copy buildnotes from plugin directories--> |
| 67 | <mkdir dir="${postingDirectory}/${buildLabel}/buildnotes" /> |
| 68 | <copy todir="${postingDirectory}/${buildLabel}/buildnotes" flatten="true"> |
| 69 | <fileset dir="${buildDirectory}/plugins" includes="**/buildnotes_*.html,**/buildnotes_*.htm,**/jdt_core_style.css" /> |
| 70 | </copy> |
| 71 | |
| 72 | <!--copy javadoc logs--> |
| 73 | <copy file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/doc.bin.log" tofile="${postingDirectory}/${buildLabel}/compilelogs/platform.doc.isv.javadoc.txt" failonerror="false" /> |
| 74 | <copy file="${buildDirectory}/plugins/org.eclipse.jdt.doc.isv/doc.bin.log" tofile="${postingDirectory}/${buildLabel}/compilelogs/jdt.doc.isv.javadoc.txt" failonerror="false" /> |
| 75 | <copy file="${buildDirectory}/plugins/org.eclipse.jdt.doc.isv/jdtapt.doc.bin.log" tofile="${postingDirectory}/${buildLabel}/compilelogs/jdt.apt.javadoc.txt" failonerror="false" /> |
| 76 | <copy file="${buildDirectory}/plugins/org.eclipse.pde.doc.user/doc.bin.log" tofile="${postingDirectory}/${buildLabel}/compilelogs/pde.doc.user.javadoc.txt" failonerror="false" /> |
| 77 | <copy file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/platformconvert.txt" tofile="${postingDirectory}/${buildLabel}/compilelogs/platform.doc.isv.schema.txt" failonerror="false" /> |
| 78 | <copy file="${buildDirectory}/plugins/org.eclipse.jdt.doc.isv/jdtconvert.txt" tofile="${postingDirectory}/${buildLabel}/compilelogs/jdt.doc.isv.schema.txt" failonerror="false" /> |
| 79 | <copy file="${buildDirectory}/plugins/org.eclipse.pde.doc.user/pdeconvert.txt" tofile="${postingDirectory}/${buildLabel}/compilelogs/pde.doc.user.schema.txt" failonerror="false" /> |
| 80 | |
| 81 | </target> |
| 82 | |
| 83 | |
| 84 | <!-- ===================================================================== --> |
| 85 | <!-- Target used to test the build --> |
| 86 | <!-- ===================================================================== --> |
| 87 | <target name="testAll" unless="skip.tests"> |
| 88 | <waitfor maxwait="4" maxwaitunit="hour" checkevery="1" checkeveryunit="minute"> |
| 89 | <and> |
| 90 | <available file="${postingDirectory}/${buildLabel}/checksum/eclipse-Automated-Tests-${buildId}.zip.md5"/> |
| 91 | <available file="${postingDirectory}/${buildLabel}/checksum/eclipse-SDK-${buildId}-win32.zip.md5"/> |
| 92 | <available file="${postingDirectory}/${buildLabel}/checksum/eclipse-SDK-${buildId}-linux-gtk.tar.gz.md5"/> |
| 93 | <available file="${postingDirectory}/${buildLabel}/checksum/eclipse-SDK-${buildId}-macosx-carbon.tar.gz.md5"/> |
| 94 | </and> |
| 95 | </waitfor> |
| 96 | |
| 97 | <property name="cvstest.properties" value="${base.builder}/../eclipseInternalBuildTools/cvstest.properties" /> |
| 98 | <antcall target="configure.team.cvs.test"/> |
| 99 | |
| 100 | <!--replace buildid in vm.properties for JVM location settings--> |
| 101 | <replace dir="${eclipse.build.configs}/sdk.tests/testConfigs" |
| 102 | token="@buildid@" |
| 103 | value="${buildId}" |
| 104 | includes="**/vm.properties"/> |
| 105 | |
| 106 | <parallel> |
| 107 | <antcall target="test-JUnit" /> |
| 108 | <antcall target="test-performance" /> |
| 109 | </parallel> |
| 110 | </target> |
| 111 | |
| 112 | <target name="test-JUnit"> |
| 113 | <echo message="Starting tests." /> |
| 114 | <property name="dropLocation" value="${postingDirectory}" /> |
| 115 | <ant antfile="testAll.xml" dir="${eclipse.build.configs}/sdk.tests/testConfigs" /> |
| 116 | |
| 117 | <antcall target="generateEclipseIndex" /> |
| 118 | |
| 119 | <!--copy the test results and new index page to the posting location--> |
| 120 | <copy todir="${postingDirectory}/${buildLabel}" overwrite="true"> |
| 121 | <fileset dir="${buildDirectory}/${buildLabel}" includes="testresults/**,*.php" /> |
| 122 | </copy> |
| 123 | <replace file="${postingDirectory}/${buildLabel}/testResults.php" token="@build@" value="${buildId}" /> |
| 124 | |
| 125 | </target> |
| 126 | |
| 127 | <!-- ===================================================================== --> |
| 128 | <!-- Target used to test the build --> |
| 129 | <!-- ===================================================================== --> |
| 130 | <target name="test-performance" unless="skip.performance.tests"> |
| 131 | <echo message="Starting performance tests." /> |
| 132 | <property name="dropLocation" value="${postingDirectory}" /> |
| 133 | <ant antfile="testAll.xml" dir="${eclipse.build.configs}/sdk.tests/testConfigs" target="performanceTests" /> |
| 134 | <antcall target="generatePerformanceResults" /> |
| 135 | </target> |
| 136 | |
| 137 | <!-- ===================================================================== --> |
| 138 | <!-- Target used to test the build for internal references --> |
| 139 | <!-- ===================================================================== --> |
| 140 | <target name="test-internalReferences"> |
| 141 | <waitfor maxwait="4" maxwaitunit="hour" checkevery="1" checkeveryunit="minute"> |
| 142 | <available file="${postingDirectory}/${buildLabel}/checksum/eclipse-SDK-${buildId}-win32.zip.md5"/> |
| 143 | </waitfor> |
| 144 | |
| 145 | <property name="apiscanner" value="${eclipse.build.configs}/sdk/tools/apiscanner" /> |
| 146 | <property name="workingDir" value="${buildDirectory}/internalReference" /> |
| 147 | <mkdir dir="${workingDir}" /> |
| 148 | <unzip src="${postingDirectory}/${buildLabel}/eclipse-SDK-${buildId}-win32.zip" dest="${workingDir}" /> |
| 149 | |
| 150 | <java classname="org.eclipse.wtp.releng.tools.component.violation.ComponentViolationEmitter" fork="true" dir="${apiscanner}"> |
| 151 | <arg line=" |
| 152 | -eclipseDir ${workingDir}/eclipse |
| 153 | -compXMLDir ${buildDirectory}/plugins |
| 154 | -compRefDir component-ref |
| 155 | -compVioDir ${postingDirectory}/${buildLabel}/internalReference |
| 156 | -xsl xsl/component-violation.xsl |
| 157 | -summaryXSL xsl/component-violation-summary.xsl" /> |
| 158 | <classpath> |
| 159 | <fileset dir="${apiscanner}/lib" /> |
| 160 | </classpath> |
| 161 | </java> |
| 162 | </target> |
| 163 | |
| 164 | <!-- ===================================================================== --> |
| 165 | <!-- Helper targets --> |
| 166 | <!-- ===================================================================== --> |
| 167 | |
| 168 | |
| 169 | <target name="configure.team.cvs.test" unless="test.xml.tmp" if="cvstest.properties"> |
| 170 | <copy file="${eclipse.build.configs}/sdk.tests/testScripts/test.xml" tofile="${eclipse.build.configs}/sdk.tests/testScripts/test.xml.tmp" /> |
| 171 | <replace file="${eclipse.build.configs}/sdk.tests/testScripts/test.xml" propertyFile="${cvstest.properties}"> |
| 172 | <replacefilter token="${cvs_user}" property="cvs_user" /> |
| 173 | <replacefilter token="${cvs_password}" property="cvs_password" /> |
| 174 | <replacefilter token="${cvs_host}" property="cvs_host" /> |
| 175 | <replacefilter token="${cvs_root}" property="cvs_root" /> |
| 176 | </replace> |
| 177 | <delete file="${eclipse.build.configs}/sdk.tests/testScripts/test.xml.tmp" /> |
| 178 | </target> |
| 179 | |
| 180 | |
| 181 | |
| 182 | <target name="generatePerformanceResults"> |
| 183 | <mkdir dir="${buildDirectory}/${buildLabel}/performance" /> |
| 184 | <mkdir dir="${postingDirectory}/${buildLabel}/performance" /> |
| 185 | <taskdef name="performanceResults" classname="org.eclipse.releng.performance.PerformanceResultHtmlGenerator" /> |
| 186 | <condition property="configArgs" value="-ws gtk -arch ppc"> |
| 187 | <not> |
| 188 | <equals arg1="{os.arch}" arg2="i386" /> |
| 189 | </not> |
| 190 | </condition> |
| 191 | <property name="configArgs" value="" /> |
| 192 | |
| 193 | <java jar="${basedir}/../org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar" fork="true" maxmemory="256m"> |
| 194 | <arg line="${configArgs} -application org.eclipse.test.performance.ui.resultGenerator |
| 195 | -baseline ${eclipse.perf.ref} |
| 196 | -baseline.prefix 3.2_200606291905 |
| 197 | -current ${buildId} |
| 198 | -jvm ${eclipse.perf.jvm} |
| 199 | -output ${postingDirectory}/${buildLabel}/performance/ |
| 200 | -config eclipseperfwin1_R3.3,eclipseperflnx1_R3.3,eclipseperfwin2_R3.3,eclipseperflnx2_R3.3,eclipseperflnx3_R3.3 |
| 201 | -config.properties ${eclipse.perf.config.descriptors} |
| 202 | -scenario.pattern org.eclipse.%.test" |
| 203 | /> |
| 204 | <!-- add this argument to list above when there are milestone builds to highlight |
| 205 | -highlight.latest 3.3M1_ |
| 206 | --> |
| 207 | <env key="LD_LIBRARY_PATH" value="${basedir}/../org.eclipse.releng.basebuilder" /> |
| 208 | <sysproperty key="eclipse.perf.dbloc" value="${dbloc}" /> |
| 209 | </java> |
| 210 | |
| 211 | <performanceResults |
| 212 | xmlDirectoryName="${postingDirectory}/${buildLabel}/performance/xml" |
| 213 | dropDirectoryName="${postingDirectory}/${buildLabel}" |
| 214 | testResultsTemplateFileName="${publishingContent}/templateFiles/performance.php.template" |
| 215 | testResultsHtmlFileName="performance/performance.php" |
| 216 | hrefTestResultsTargetPath="html" |
| 217 | testManifestFileName="${publishingContent}/performanceTestManifest.xml" |
| 218 | /> |
| 219 | |
| 220 | <replace file="${postingDirectory}/${buildLabel}/performance/performance.php" token="@buildType@" value="${buildType}" /> |
| 221 | </target> |
| 222 | |
| 223 | <target name="verifyCompile" if="eclipse.running"> |
| 224 | |
| 225 | <echo message="Checking for compile errors..." /> |
| 226 | <echo message="Log file directory: ${postingDirectory}/${buildId}/compilelogs" /> |
| 227 | |
| 228 | <!--create html output for compile logs--> |
| 229 | <echo message="${postingDirectory}/${buildId}/compilelogs/plugins"/> |
| 230 | <eclipse.convert input="${postingDirectory}/${buildId}/compilelogs/plugins" validation="true"/> |
| 231 | |
| 232 | <!-- Sends email to recipient list in monitor.properties with compile logs attached if errors found--> |
| 233 | <!-- The shell scripts will gather compile error plugin list into monitor.properties --> |
Xiaoying Gu | 4553730 | 2010-01-06 08:47:29 +0000 | [diff] [blame] | 234 | <!-- |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 235 | <echo message="${eclipse.build.configs}/../../extras/verifyCompile.sh"/> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 236 | <exec executable="${eclipse.build.configs}/../../extras/verifyCompile.sh"> |
| 237 | <arg value="${postingDirectory}/${buildId}/compilelogs"/> |
| 238 | </exec> |
Xiaoying Gu | 4553730 | 2010-01-06 08:47:29 +0000 | [diff] [blame] | 239 | --> |
| 240 | <echo message="start check compile error"/> |
| 241 | <antcall target="verifyCompileUtil"/> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 242 | <antcall target="checkCompileError"/> |
| 243 | </target> |
Xiaoying Gu | 4553730 | 2010-01-06 08:47:29 +0000 | [diff] [blame] | 244 | |
| 245 | <target name="checkUtilExists"> |
| 246 | <available file="${eclipse.build.configs}/../../extras/org.eclipse.birt.build_2.2.0.jar" |
| 247 | property="isFileAvail"/> |
| 248 | </target> |
| 249 | |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 250 | |
Xiaoying Gu | 4553730 | 2010-01-06 08:47:29 +0000 | [diff] [blame] | 251 | <target name="verifyCompileUtil" depends="checkUtilExists" if="isFileAvail"> |
| 252 | <path id="customjar.classpath"> |
| 253 | <fileset dir="${eclipse.build.configs}/../../extras/"> |
| 254 | <include name="*.jar"/> |
| 255 | </fileset> |
| 256 | <fileset dir="${buildDirectory}/plugins"> |
| 257 | <include name="org.apache.xerces_*.jar"/> |
| 258 | </fileset> |
| 259 | </path> |
| 260 | |
| 261 | <!-- Using custom build tools to get failure/error summary of test result --> |
| 262 | <java classname="org.eclipse.birt.build.VerifyCompileUtils" output="${eclipse.build.configs}/../../verifyCompile.log"> |
| 263 | <classpath refid="customjar.classpath" /> |
| 264 | <arg value="${postingDirectory}/${buildId}/compilelogs/plugins" /> |
| 265 | <arg value="${eclipse.build.configs}/../../monitor.properties" /> |
| 266 | </java> |
| 267 | |
| 268 | </target> |
| 269 | |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 270 | <target name="rSyncWithSnzZrh" unless="test"> |
| 271 | <waitfor maxwait="300" maxwaitunit="minute" checkevery="1" checkeveryunit="minute"> |
| 272 | <available file="${postingDirectory}/${buildId}/eclipse-Automated-Tests-${buildId}.zip" /> |
| 273 | </waitfor> |
| 274 | <antcall target="zrhBuilds" /> |
| 275 | <antcall target="snzBuilds" /> |
| 276 | </target> |
| 277 | |
| 278 | <target name="snzBuilds"> |
| 279 | <!--copy drops to local directory for rsync with snz--> |
| 280 | <copy todir="/builds/transfer/files/snz"> |
| 281 | <fileset dir="${postingDirectory}" includes ="${buildId}/eclipse-SDK-*-win32.zip,${buildId}/eclipse-SDK-*-linux-gtk.tar.gz" excludes="${buildId}/eclipse-SDK-examples-*-win32.zip" /> |
| 282 | </copy> |
| 283 | </target> |
| 284 | |
| 285 | <target name="zrhBuilds"> |
| 286 | <!--copy drops to local directory for rsync with zrh--> |
| 287 | <copy todir="/builds/transfer/files/zrh"> |
| 288 | <fileset dir="${postingDirectory}" includes ="${buildId}/eclipse-SDK-*-macosx-carbon.tar.gz,${buildId}/eclipse-SDK-*-win32.zip,${buildId}/eclipse-SDK-*-linux-*.tar.gz" excludes="${buildId}/eclipse-SDK-examples-*-win32.zip,${buildId}/eclipse-SDK-*-linux-gtk-x86_64.tar.gz,${buildId}/eclipse-SDK-*-linux-gtk-ppc.tar.gz" /> |
| 289 | </copy> |
| 290 | </target> |
| 291 | <!-- ===================================================================== --> |
| 292 | <!-- Default target --> |
| 293 | <!-- ===================================================================== --> |
| 294 | <target name="noDefault"> |
| 295 | <echo message="You must specify a target when invoking this file" /> |
| 296 | </target> |
| 297 | |
| 298 | <target name="buildUpdateJars"> |
| 299 | <property name="updateJarWorkingDir" value="${buildDirectory}/updateJars" /> |
| 300 | <mkdir dir="${updateJarWorkingDir}" /> |
| 301 | <mkdir dir="${updateJarWorkingDir}/site" /> |
| 302 | |
| 303 | <!--eclipse-master-${buildId}.bak.zip contains the signed update jars. eclipse-master-${buildId}.zip contains the |
| 304 | features and plug-ins unpacked. Need features in directory structures for tool to work. --> |
| 305 | |
| 306 | <unzip src="${buildDirectory}/${buildId}/birt-report-framework-sdk-${package.version}.zip" dest="${updateJarWorkingDir}" /> |
| 307 | |
| 308 | <!--operation on creates update jars for features and for plug-ins which are to be unpacked when installed--> |
| 309 | <java classname="org.eclipse.releng.generators.UpdateBuilder" > |
| 310 | <arg line="-root ${updateJarWorkingDir}/eclipse -directory ${buildDirectory}/directory.txt -build ${buildId} -site ${updateJarWorkingDir}/site -sitexml ${updateSite}/site.xml" /> |
| 311 | <classpath> |
| 312 | <pathelement location="${base.builder}/plugins/org.eclipse.internal.build.tools/internalTools.jar"/> |
| 313 | <pathelement location="${base.builder}/plugins/org.eclipse.build.tools/buildTools.jar"/> |
| 314 | <pathelement location="${base.builder}/plugins/org.eclipse.osgi_3.2.0.v20060601.jar"/> |
| 315 | </classpath> |
| 316 | </java> |
| 317 | |
| 318 | <!--store previous site.xml--> |
| 319 | <move file="${updateSite}/site.xml" tofile="${updateSite}/site.xml.bak" overwrite="true" /> |
| 320 | <!--copy site.xml to update site--> |
| 321 | <copy todir="${updateSite}" overwrite="true"> |
| 322 | <fileset dir="${updateJarWorkingDir}/site" includes="site.xml" /> |
| 323 | </copy> |
| 324 | |
| 325 | <mkdir dir="${updateSite}/features" /> |
| 326 | <mkdir dir="${updateSite}/plugins" /> |
| 327 | |
| 328 | <!--use original signed update jars--> |
| 329 | <!-- back up |
| 330 | <exec executable="unzip" dir="."> |
| 331 | <arg line="-j ${buildDirectory}/${buildId}/birt-report-framework-sdk-${package.version}.bak.zip -i */features/* -x */master-equinox* */com.ibm.icu.base* -d ${updateSite}/features" /> |
| 332 | </exec> |
| 333 | --> |
| 334 | <exec executable="unzip" dir="."> |
| 335 | <arg line="-j ${buildDirectory}/${buildId}/birt-report-framework-sdk-${package.version}.bak.zip -i */features/* -d ${updateSite}/features" /> |
| 336 | </exec> |
| 337 | <java jar="${eclipse.home}/startup.jar" |
| 338 | fork="true" |
| 339 | jvm="${java15-home}/bin/java" |
| 340 | failonerror="true" |
| 341 | maxmemory="128m" |
| 342 | dir="${buildDirectory}"> |
| 343 | <arg line="-application org.eclipse.update.core.siteOptimizer"/> |
| 344 | <arg line="-digestBuilder -digestOutputDir=${updateSite} -siteXML=${updateSite}/site.xml"/> |
| 345 | </java> |
| 346 | </target> |
| 347 | |
| 348 | <target name="cleanSites"> |
| 349 | <cleanSite ageInMinutes="1440" directoryName="/builds/transfer/files/master/downloads/drops" realDelete="true" /> |
| 350 | <cleanSite ageInMinutes="1440" directoryName="/builds/transfer/files/master/equinox/drops/" realDelete="true" /> |
| 351 | <cleanSite ageInMinutes="1440" directoryName="/builds/transfer/files/bogus/downloads/drops" realDelete="true" /> |
| 352 | <cleanSite ageInMinutes="1440" directoryName="/builds/transfer/files/zrh" realDelete="true" /> |
| 353 | <cleanSite ageInMinutes="1440" directoryName="/builds/transfer/files/snz" realDelete="true" /> |
| 354 | </target> |
| 355 | |
| 356 | <target name="CheckoutFromP4" depends="init"> |
| 357 | |
| 358 | <!-- check out org.eclipse.releng --> |
| 359 | <!-- check out version control files --> |
| 360 | |
| 361 | <property file="${eclipse.build.configs}/../../config.properties"/> |
| 362 | |
| 363 | <echo message="p4.workspace=${p4.workspace}"/> |
| 364 | <echo message="p4.home=${p4.home}"/> |
| 365 | <echo message="p4.client=${p4.client}"/> |
| 366 | |
| 367 | |
| 368 | <delete dir="${p4.workspace}/Development/JRP/Dev/build" failonerror="false" /> |
| 369 | <mkdir dir="${p4.workspace}/Development/JRP/Dev/build" /> |
| 370 | |
| 371 | <delete dir="${p4.home}/CvsDiff" failonerror="false"/> |
| 372 | <delete dir="${p4.home}/reportTestsLib" failonerror="false"/> |
| 373 | |
| 374 | <!-- checkout the package to checkout.dir --> |
| 375 | <echo message="checking out daily build scripts" /> |
| 376 | |
| 377 | <!-- //${p4.client}/Development/JRP/Dev/build/sampleReports/... |
| 378 | //${p4.client}/Development/JRP/Dev/build/cvsDiff/... |
| 379 | --> |
| 380 | <p4sync view="//${p4.client}/Development/JRP/Dev/build/script/... |
| 381 | //${p4.client}/Development/JRP/Dev/build/lib/... |
| 382 | //${p4.client}/Development/JRP/Dev/build/AutomationLib/... |
| 383 | //${p4.client}/Development/JRP/Dev/birt/org.eclipse.birt.report.data.oda.jdbc/jdbc-drivers/..." |
| 384 | port="${p4.port}" |
| 385 | user="${p4.user}" |
| 386 | globalopts="-P ${p4.passwd}" |
| 387 | failonerror="true" |
| 388 | force="true" /> |
| 389 | |
| 390 | <copy todir="${p4.home}/reportTestsLib" overwrite="true" failonerror="true"> |
| 391 | <fileset dir="${p4.workspace}/Development/JRP/Dev/build/AutomationLib"/> |
| 392 | </copy> |
| 393 | <copy todir="${p4.home}/drivers" overwrite="true" failonerror="true"> |
| 394 | <fileset dir="${p4.workspace}/Development/JRP/Dev/birt/org.eclipse.birt.report.data.oda.jdbc/jdbc-drivers"/> |
| 395 | </copy> |
| 396 | <!-- |
| 397 | <copy todir="${p4.home}/CvsDiff" overwrite="true" failonerror="true"> |
| 398 | <fileset dir="${p4.workspace}/Development/JRP/Dev/build/cvsDiff"/> |
| 399 | </copy> |
| 400 | --> |
| 401 | <copy todir="${p4.home}/../PackageFiles/template" overwrite="true" failonerror="true"> |
| 402 | <fileset dir="${p4.workspace}/Development/JRP/Dev/build/script/template"> |
| 403 | <include name="**"/> |
| 404 | </fileset> |
| 405 | </copy> |
| 406 | </target> |
| 407 | |
| 408 | <target name="backupSrc"> |
| 409 | </target> |
| 410 | |
| 411 | <target name="cleanBuild"> |
| 412 | |
| 413 | <echo message="clean up last input under ${buildDirectory} ..." /> |
| 414 | <delete failonerror="false" includeemptydirs="true"> |
| 415 | <fileset dir="${buildDirectory}"> |
| 416 | <include name="*.properties"/> |
| 417 | <include name="*.txt"/> |
| 418 | <include name="*.xml"/> |
| 419 | <include name="plugins/**"/> |
| 420 | <include name="features/**"/> |
| 421 | <include name="maps/source"/> |
| 422 | </fileset> |
| 423 | </delete> |
| 424 | <delete failonerror="false" includeemptydirs="true"> |
| 425 | <fileset dir="${p4.home}"> |
| 426 | <include name="source/**"/> |
| 427 | <include name="CvsResult/*.xml"/> |
| 428 | <include name="CvsResult/DaysInPast/*.xml"/> |
| 429 | </fileset> |
| 430 | </delete> |
| 431 | </target> |
| 432 | <target name="init"> |
| 433 | <echo message="loading ${eclipse.build.configs}/../../build.properties ..."/> |
| 434 | <property file="${eclipse.build.configs}/../../build.properties"/> |
| 435 | </target> |
| 436 | |
| 437 | <target name="getDTPDownloads" depends="init"> |
| 438 | |
| 439 | <tstamp prefix="timestamp"> |
| 440 | <format property="TODAY_US" pattern="MMddyy" timezone="GMT-16"/> |
| 441 | <format property="TODAY_SH" pattern="MMddyy" /> |
| 442 | </tstamp> |
| 443 | |
| 444 | <property name="plugin-dest" value="${baseLocation}"/> |
| 445 | <property name="package-dest" value="${baseLocation}/../PackageFiles"/> |
| 446 | <property name="AllInOne-dest" value="${baseLocation}/../PackageFiles/AllInOne"/> |
| 447 | <property name="AllInOne-Linux-dest" value="${baseLocation}/../PackageFiles/AllInOne-Linux"/> |
| 448 | <property name="file-version" value="${file-prefix}${timestamp.TODAY_US}"/> |
| 449 | |
| 450 | <get src="http://download.eclipse.org/datatools/downloads/drops/N_DTP_1.6/${file-version}.zip" dest="${postingDirectory}/../platform/DTP/${file-version}.zip" verbose="true" usetimestamp="true" /> |
| 451 | |
| 452 | <echo message="START to Unzip the downloaded Plugins files" /> |
| 453 | <unzip src="${postingDirectory}/../platform/DTP/${file-version}.zip" dest="${p4.home}/downloads/${file-version}"/> |
| 454 | |
| 455 | <echo message="Clean last download stuff" /> |
| 456 | <delete includeemptydirs="true" failonerror="false"> |
| 457 | <fileset dir="${plugin-dest}/plugins" > |
| 458 | <include name="*.datatools.*.jar" /> |
| 459 | <include name="org.eclipse.datatools.*/**" /> |
| 460 | <include name="org.apache.xerces_*.jar"/> |
| 461 | <include name="org.apache.xml.resolver_*.jar"/> |
| 462 | <include name="javax.wsdl_*.jar"/> |
| 463 | </fileset> |
| 464 | <fileset dir="${plugin-dest}/features" > |
| 465 | <include name="org.eclipse.datatools.*/**" /> |
| 466 | </fileset> |
| 467 | <fileset dir="${package-dest}/dtp/eclipse/plugins" > |
| 468 | <include name="*.datatools.*.jar" /> |
| 469 | <include name="org.eclipse.datatools.*/**" /> |
| 470 | <include name="org.apache.xerces_*.jar"/> |
| 471 | <include name="org.apache.xml.resolver_*.jar"/> |
| 472 | <include name="javax.wsdl_*.jar"/> |
| 473 | </fileset> |
| 474 | <fileset dir="${package-dest}/dtp/eclipse/features" > |
| 475 | <include name="org.eclipse.datatools.*/**" /> |
| 476 | </fileset> |
| 477 | <!-- ============================= |
| 478 | <fileset dir="${AllInOne-dest}/eclipse/plugins" > |
| 479 | <include name="*.datatools.*.jar" /> |
| 480 | <include name="org.eclipse.datatools.*/**" /> |
| 481 | <include name="org.apache.xerces_*.jar"/> |
| 482 | <include name="org.apache.xml.resolver_*.jar"/> |
| 483 | <include name="javax.wsdl_*.jar"/> |
| 484 | </fileset> |
| 485 | <fileset dir="${AllInOne-dest}/eclipse/features" > |
| 486 | <include name="org.eclipse.datatools.*/**" /> |
| 487 | </fileset> |
| 488 | <fileset dir="${AllInOne-Linux-dest}/eclipse/plugins" > |
| 489 | <include name="*.datatools.*.jar" /> |
| 490 | <include name="org.eclipse.datatools.*/**" /> |
| 491 | <include name="org.apache.xerces_*.jar"/> |
| 492 | <include name="org.apache.xml.resolver_*.jar"/> |
| 493 | <include name="javax.wsdl_*.jar"/> |
| 494 | </fileset> |
| 495 | <fileset dir="${AllInOne-Linux-dest}/eclipse/features" > |
| 496 | <include name="org.eclipse.datatools.*/**" /> |
| 497 | </fileset> |
| 498 | ====================================== --> |
| 499 | </delete> |
| 500 | |
| 501 | <!--Define the ODA dependency plugins--> |
| 502 | <patternset id="oda.runtime.plugins"> |
| 503 | <include name="org.eclipse.datatools.connectivity_*.jar" /> |
| 504 | <include name="org.eclipse.datatools.connectivity.ui_*.jar" /> |
| 505 | <include name="org.eclipse.datatools.connectivity.ui.dse_*.jar" /> |
| 506 | <include name="org.eclipse.datatools.doc.user_*/**"/> |
| 507 | <include name="org.eclipse.datatools.connectivity.oda.consumer_*.jar" /> |
| 508 | <include name="org.eclipse.datatools.connectivity.oda.design.ui_*.jar" /> |
| 509 | <include name="org.eclipse.datatools.connectivity.oda.design_*.jar" /> |
| 510 | <include name="org.eclipse.datatools.connectivity.oda.flatfile.ui_*.jar" /> |
| 511 | <include name="org.eclipse.datatools.connectivity.oda.flatfile_*.jar" /> |
| 512 | <include name="org.eclipse.datatools.connectivity.oda.profile_*.jar" /> |
| 513 | <include name="org.eclipse.datatools.connectivity.oda_*.jar" /> |
| 514 | <include name="org.eclipse.datatools.connectivity.oda.designer.finfo_*.jar"/> |
| 515 | <include name="org.eclipse.datatools.connectivity.oda.finfo_*.jar"/> |
| 516 | <include name="org.eclipse.datatools.connectivity.oda.template.ui_*.jar"/> |
| 517 | <include name="org.eclipse.datatools.enablement.oda.xml_*.jar"/> |
| 518 | <include name="org.eclipse.datatools.enablement.oda.xml.ui_*.jar"/> |
| 519 | <include name="org.eclipse.datatools.enablement.oda.designer.finfo_*.jar"/> |
| 520 | <include name="org.eclipse.datatools.enablement.oda.finfo_*.jar"/> |
| 521 | <include name="org.eclipse.datatools.oda.cshelp_*.jar"/> |
| 522 | <include name="org.eclipse.datatools.enablement.oda.ws.ui_*.jar"/> |
| 523 | <include name="org.eclipse.datatools.enablement.oda.ws_*.jar"/> |
| 524 | <include name="org.eclipse.datatools.help_*.jar"/> |
| 525 | <include name="org.eclipse.datatools.doc.isv_*.jar"/> |
| 526 | <include name="org.apache.xerces_*.jar"/> |
| 527 | <include name="org.apache.xml.resolver_*.jar"/> |
| 528 | <include name="javax.wsdl_*.jar"/> |
| 529 | </patternset> |
| 530 | <patternset id="oda.runtime.features"> |
| 531 | <include name="org.eclipse.datatools.connectivity.oda.designer.feature_*/**" /> |
| 532 | <include name="org.eclipse.datatools.connectivity.oda.feature_*/**" /> |
| 533 | <include name="org.eclipse.datatools.enablement.oda.feature_*/**" /> |
| 534 | <include name="org.eclipse.datatools.enablement.oda.designer.feature_*/**" /> |
| 535 | <include name="org.eclipse.datatools.doc.user_*/**"/> |
| 536 | </patternset> |
| 537 | |
| 538 | |
| 539 | <!-- Copy to static baseLocation --> |
| 540 | <copy todir="${plugin-dest}/plugins" failonerror="false" > |
| 541 | <fileset dir="${p4.home}/downloads/${file-version}/eclipse/plugins"> |
| 542 | <patternset refid="oda.runtime.plugins" /> |
| 543 | </fileset> |
| 544 | </copy> |
| 545 | <copy todir="${plugin-dest}/features" failonerror="false" > |
| 546 | <fileset dir="${p4.home}/downloads/${file-version}/eclipse/features"> |
| 547 | <patternset refid="oda.runtime.features" /> |
| 548 | </fileset> |
| 549 | </copy> |
| 550 | |
| 551 | <!-- Copy to package files dir --> |
| 552 | <copy todir="${package-dest}/dtp/eclipse/plugins" failonerror="false"> |
| 553 | <fileset dir="${p4.home}/downloads/${file-version}/eclipse/plugins"> |
| 554 | <patternset refid="oda.runtime.plugins" /> |
| 555 | </fileset> |
| 556 | </copy> |
| 557 | |
| 558 | <copy todir="${package-dest}/dtp/eclipse/features" failonerror="false" > |
| 559 | <fileset dir="${p4.home}/downloads/${file-version}/eclipse/features"> |
| 560 | <patternset refid="oda.runtime.features" /> |
| 561 | </fileset> |
| 562 | </copy> |
| 563 | </target> |
| 564 | |
| 565 | <!-- Build BIRT Web Viewer --> |
| 566 | <target name="BuildWebViewer" depends="init"> |
| 567 | <mkdir dir="${buildDirectory}/${buildId}/birt_web"/> |
| 568 | <ant antfile="WebViewerPackager.xml" dir="${buildDirectory}/plugins/org.eclipse.birt.report.viewer" target="Jar"> |
| 569 | <property name="integrate.dir" value="${buildDirectory}/${buildId}/eclipse"/> |
| 570 | <property name="baseLocation.emf" value="${baseLocation.emf}"/> |
| 571 | </ant> |
| 572 | <ant antfile="WebViewerPackager.xml" dir="${buildDirectory}/plugins/org.eclipse.birt.report.viewer" target="Export"> |
| 573 | <property name="export.dir" value="${buildDirectory}/${buildId}/birt_web"/> |
| 574 | </ant> |
| 575 | <!-- copy extra chartengine and emf --> |
| 576 | <!-- |
| 577 | <copy todir="${buildDirectory}/${buildId}/birt_web/org.eclipse.birt.report.viewer/birt_web/WEB-INF/platform/lib"> |
| 578 | <fileset dir="${baseLocation}/plugins/"> |
| 579 | <include name="org.eclipse.emf.common_*.jar" /> |
| 580 | <include name="org.eclipse.emf.ecore.xmi_*.jar" /> |
| 581 | <include name="org.eclipse.emf.ecore_*.jar" /> |
| 582 | </fileset> |
| 583 | </copy> |
| 584 | <copy todir="${buildDirectory}/${buildId}/birt_web/org.eclipse.birt.report.viewer/birt_web/WEB-INF/platform/lib"> |
| 585 | <fileset dir="${buildDirectory}/${buildId}/eclipse/plugins" /> |
| 586 | <mapper type="regexp" from="org.eclipse.birt.chart.engine_.*.jar" to="chartengineapi.jar"/> |
| 587 | </copy> |
| 588 | --> |
| 589 | <copy todir="${buildDirectory}/${buildId}/birt_web/org.eclipse.birt.report.viewer/birt_web/WEB-INF/lib"> |
| 590 | <fileset dir="${buildDirectory}/${buildId}/eclipse/plugins" > |
| 591 | <include name="org.eclipse.birt.chart.engine_.*.jar"/> |
| 592 | </fileset> |
| 593 | <mapper type="regexp" from="org.eclipse.birt.chart.engine_.*.jar" to="chartengineapi.jar"/> |
| 594 | </copy> |
| 595 | </target> |
| 596 | |
| 597 | <target name="runBirtPerformance" depends="init"> |
| 598 | <ant dir="${runner.dir}" antfile="testRunner.xml" target="org.eclipse.birt.test.performance"/> |
| 599 | <!-- copy performance result to public test result dir --> |
| 600 | <property file="${buildDirectory}/finalPluginsVersions.properties"/> |
| 601 | <copy todir="${test.dir}/unitTestReport/html"> |
| 602 | <fileset dir="${test.dir}/eclipse/plugins/org.eclipse.birt.test.performance_${org.eclipse.birt.test.performance}"> |
| 603 | <include name="reporting_*.xml"/> |
| 604 | </fileset> |
| 605 | </copy> |
| 606 | </target> |
| 607 | |
| 608 | <target name="runBirtTest" depends="init,prepareBirtTest"> |
| 609 | <!-- call the birt unit test --> |
| 610 | <ant dir="${runner.dir}" antfile="testRunner.xml" /> |
| 611 | <antcall target="transformTestReports"/> |
| 612 | </target> |
| 613 | |
| 614 | <target name="prepareBirtTest" depends="init"> |
| 615 | <!-- Clean last test plugins --> |
| 616 | <delete includeEmptyDirs="true" failonerror="false"> |
| 617 | <fileset dir="${test.dir}/eclipse"> |
| 618 | <include name="**/*"/> |
| 619 | </fileset> |
| 620 | </delete> |
| 621 | <!-- clean last unit test reports --> |
| 622 | <delete failonerror="false"> |
| 623 | <fileset dir="${test.dir}/unitTestReport"> |
| 624 | <include name="**/*.xml"/> |
| 625 | <include name="**/*.html"/> |
| 626 | <exclude name="**/build.xml"/> |
| 627 | </fileset> |
| 628 | </delete> |
| 629 | <!-- prepare unit test components --> |
| 630 | <copy todir="${test.dir}"> |
| 631 | <fileset dir="${postingDirectory}/${buildId}"> |
| 632 | <include name="birt-report-designer-all-in-one-${package.version}-linux-gtk.tar.gz"/> |
| 633 | <include name="birt-tests-suite-${package.version}.zip"/> |
| 634 | </fileset> |
| 635 | </copy> |
| 636 | |
| 637 | <exec executable="gunzip" dir="${test.dir}"> |
| 638 | <arg line="birt-report-designer-all-in-one-${package.version}-linux-gtk.tar.gz" /> |
| 639 | </exec> |
| 640 | <exec executable="tar" dir="${test.dir}"> |
| 641 | <arg line="-xvf birt-report-designer-all-in-one-${package.version}-linux-gtk.tar" /> |
| 642 | </exec> |
| 643 | <exec executable="unzip" dir="${test.dir}"> |
| 644 | <arg line="-o -q birt-tests-suite-${package.version}.zip -d ${test.dir}" /> |
| 645 | </exec> |
| 646 | <exec executable="unzip" dir="${postingDirectory}/${buildId}/../../platform/2.3M4_platform"> |
| 647 | <arg line="-o -q eclipse-test-framework-3.4M4.zip -d ${test.dir}" /> |
| 648 | </exec> |
| 649 | <delete> |
| 650 | <fileset dir="${test.dir}"> |
| 651 | <include name="*.zip"/> |
| 652 | <include name="*.gz"/> |
| 653 | <include name="*.tar"/> |
| 654 | </fileset> |
| 655 | </delete> |
| 656 | |
| 657 | <!-- copy drivers for jdbc testing --> |
| 658 | <property file="${buildDirectory}/finalPluginsVersions.properties"/> |
| 659 | <copy todir="${test.dir}/eclipse/plugins/org.eclipse.birt.report.data.oda.jdbc_${org.eclipse.birt.report.data.oda.jdbc}/drivers"> |
| 660 | <fileset dir="${p4.home}/drivers"> |
| 661 | <include name="**"/> |
| 662 | </fileset> |
| 663 | </copy> |
| 664 | </target> |
| 665 | |
| 666 | |
| 667 | |
| 668 | <target name="transformTestReports"> |
| 669 | <property file="${buildDirectory}/finalPluginsVersions.properties"/> |
| 670 | <copy todir="${test.dir}/unitTestReport/smokexml"> |
| 671 | <fileset dir="${test.dir}/eclipse/plugins/org.eclipse.birt.report.tests.engine_${org.eclipse.birt.report.tests.engine}"> |
| 672 | <include name="TESTS-*.xml"/> |
| 673 | </fileset> |
| 674 | <fileset dir="${test.dir}/eclipse/plugins/org.eclipse.birt.tests.data_${org.eclipse.birt.tests.data}"> |
| 675 | <include name="TESTS-*.xml"/> |
| 676 | </fileset> |
| 677 | </copy> |
| 678 | <!-- XSLT trasform--> |
| 679 | <exec executable="${test.dir}/unitTestReport/processXML.sh"/> |
| 680 | <ant dir="${test.dir}/unitTestReport" antfile="build.xml"/> |
| 681 | <mkdir dir="${postingDirectory}/../unitTestReport/${package.version}/${buildId}"/> |
| 682 | <copy todir="${postingDirectory}/../unitTestReport/${package.version}/${buildId}" overwrite="true"> |
| 683 | <fileset dir="${test.dir}/unitTestReport/html"> |
| 684 | <include name="*.html"/> |
| 685 | </fileset> |
| 686 | </copy> |
| 687 | </target> |
| 688 | |
| 689 | <target name="buildLanguagePack"> |
| 690 | <antcall target="MakeNLPack1"/> |
| 691 | <antcall target="PackageNLPack1"/> |
| 692 | </target> |
| 693 | <target name="MakeNLPack1"> |
| 694 | <echo message="Start Make NL1 Pack" /> |
| 695 | <ant antfile="LanguagePackBuild.xml" dir="${eclipse.build.configs}/birt.nl/tools" target="main" inheritAll="true"> |
| 696 | <property name="build.id" value="${buildId}" /> |
| 697 | </ant> |
| 698 | </target> |
| 699 | |
| 700 | <target name="PackageNLPack1" > |
| 701 | <echo message="Start Packaging NL1 for full, framework and RCP" /> |
| 702 | <ant antfile="BIRTDownloadSetup.xml" target="createNLGroup1" dir="${eclipse.build.configs}/birt/tools" inheritAll="false"> |
| 703 | <property name="deposit" value="${buildDirectory}/${buildId}" /> |
| 704 | <property name="OutputDir" value="${postingDirectory}/${buildId}"/> |
| 705 | </ant> |
| 706 | <echo message="Start Packaging NL1 for charts" /> |
| 707 | <ant antfile="BIRTDownloadSetup.xml" target="createNLGroup1Chart" dir="${eclipse.build.configs}/birt/tools" inheritAll="false"> |
| 708 | <property name="deposit" value="${buildDirectory}/${buildId}" /> |
| 709 | <property name="OutputDir" value="${postingDirectory}/${buildId}"/> |
| 710 | </ant> |
| 711 | <echo message="Start Packaging NL1 for runtime" /> |
| 712 | <ant antfile="BIRTDownloadSetup.xml" target="createNLGroup1Runtime" dir="${eclipse.build.configs}/birt/tools" inheritAll="false"> |
| 713 | <property name="deposit" value="${buildDirectory}/${buildId}" /> |
| 714 | <property name="OutputDir" value="${postingDirectory}/${buildId}"/> |
| 715 | </ant> |
| 716 | <!-- Create NL FeatureOverlay packages --> |
| 717 | <ant antfile="BIRTDownloadSetup.xml" dir="${eclipse.build.configs}/birt/tools" target="createBirtNLFeatureOverlay"> |
| 718 | <property name="OutputDir" value="${postingDirectory}/${buildId}" /> |
| 719 | <property name="deposit" value="${buildDirectory}/${buildId}" /> |
| 720 | </ant> |
| 721 | </target> |
| 722 | |
| 723 | <target name="InformQA" unless="nomail"> |
| 724 | <property file="${eclipse.build.configs}/../../config.properties" /> |
| 725 | <mail mailport="${mail.port}" tolist="${QA.members}" from="${mail.from}" replyto="${replyto.address}" subject="${BranchVersion} Build Is Ready (BuildId: ${buildId})" > |
| 726 | <message> |
| 727 | Hi All, |
| 728 | |
| 729 | Today's build (BuildId: ${buildId}) is available. |
| 730 | Build based on: |
| 731 | ${build.environment} |
| 732 | |
| 733 | Please download : |
| 734 | |
| 735 | AllInOne from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-report-designer-all-in-one-${package.version}.zip${rtn} |
| 736 | AllInOne for linux from: ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-report-designer-all-in-one-${package.version}-linux-gtk.tar.gz${rtn} |
| 737 | RCP from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-rcp-report-designer-${package.version}.zip${rtn} |
| 738 | Runtime from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-runtime-${package.version}.zip${rtn} |
| 739 | Framework from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-report-framework-${package.version}.zip${rtn} |
| 740 | Source drops from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-source-${package.version}.zip${rtn} |
| 741 | JUnit Test Suite Framework from ${QA.test.dir}\BIRT2.3-download\${buildId}\birt-tests-suite-${package.version}.zip${rtn} |
| 742 | |
| 743 | NL pack from ${QA.test.dir}\BIRT2.3-download\${buildId}\ |
| 744 | |
| 745 | Internal Update Site URL: http://qa-build/UpdateSite/${package.version} |
| 746 | |
| 747 | Please visit [ http://qa-build:8080/BuildCentral ] for more information. |
| 748 | |
| 749 | Have a nice day! |
| 750 | </message> |
| 751 | </mail> |
| 752 | <!-- create download info file --> |
| 753 | <echo file="download.properties" append="false"> |
| 754 | allInOne=\\${QA.test.dir}\\BIRT2.3-download\\${buildId}\\birt-report-designer-all-in-one-${package.version}.zip |
| 755 | runtime=\\${QA.test.dir}\\BIRT2.3-download\\${buildId}\\birt-runtime-${package.version}.zip |
| 756 | rcp=\\${QA.test.dir}\\BIRT2.3-download\\${buildId}\\birt-rcp-report-designer-${package.version}.zip |
| 757 | frameworkSDK=\\${QA.test.dir}\\BIRT2.3-download\\${buildId}\\birt-report-framework-sdk-${package.version}.zip |
| 758 | </echo> |
| 759 | <copy tofile="${postingDirectory}/download.properties" file="download.properties" overwrite="true" /> |
| 760 | </target> |
| 761 | |
| 762 | <target name="InformPerformance" unless="nomail"> |
| 763 | <property file="${eclipse.build.configs}/../../config.properties" /> |
| 764 | <mail mailport="${mail.port}" subject="${BranchVersion} Performance Test Reporting (BuildId: ${buildId} ) " tolist="${QA.PERFORMANCE}"> |
| 765 | <from address="${mail.from}"/> |
| 766 | <replyto address="${replyto.address}"/> |
| 767 | <message> |
| 768 | Hi All, |
| 769 | |
| 770 | Please see the attachments for performance test (BuildId: ${buildId}) results. |
| 771 | |
| 772 | Please visit [ http://qa-build:8080/BuildCentral ] for more information. |
| 773 | |
| 774 | Have a nice day! |
| 775 | </message> |
| 776 | <fileset dir="${test.dir}/unitTestReport/html"> |
| 777 | <include name="reporting_*.xml"/> |
| 778 | </fileset> |
| 779 | </mail> |
| 780 | </target> |
| 781 | |
| 782 | |
| 783 | <target name="genTestResultSummary"> |
| 784 | <property file="${eclipse.build.configs}/../../config.properties" /> |
| 785 | <property name="tool.lib.path" value="${p4.home}/dailybuild/source/org.eclipse.birt.build"/> |
| 786 | <path id="customjar.classpath"> |
| 787 | <path location="${tool.lib.path}/customtask.jar" /> |
| 788 | <fileset dir="${tool.lib.path}/lib"> |
| 789 | <include name="*.jar"/> |
| 790 | </fileset> |
| 791 | </path> |
| 792 | <!-- Using custom build tools to get failure/error summary of test result --> |
| 793 | <java classname="org.eclipse.birt.build.ParseResultCount"> |
| 794 | <classpath refid="customjar.classpath" /> |
| 795 | <arg value="${test.dir}/unitTestReport/xml" /> |
| 796 | <arg value="${test.dir}/unitTestReport/html/result.properties" /> |
| 797 | <arg value="Y"/> |
| 798 | <arg value="Y"/> |
| 799 | </java> |
| 800 | <!-- |
| 801 | <java classname="org.eclipse.birt.build.ParseResultCount"> |
| 802 | <classpath refid="customjar.classpath" /> |
| 803 | <arg value="${test.dir}/unitTestReport/smokexml" /> |
| 804 | <arg value="${test.dir}/unitTestReport/html/result.properties" /> |
| 805 | <arg value="Y"/> |
| 806 | <arg value="N"/> |
| 807 | </java> |
| 808 | --> |
| 809 | <move file="${test.dir}/unitTestReport/html/result.properties" |
| 810 | tofile="${postingDirectory}/result.properties"/> |
| 811 | </target> |
| 812 | |
| 813 | <target name="InformAutomation" unless="nomail"> |
| 814 | <property file="${eclipse.build.configs}/../../config.properties" /> |
| 815 | <mail mailport="${mail.port}" subject="${BranchVersion} Test Suite Projects Reporting (BuildId: ${buildId} ) " tolist="${QA.AUTOMATION}"> |
| 816 | <from address="${mail.from}"/> |
| 817 | <replyto address="${replyto.address}"/> |
| 818 | <message> |
| 819 | Hi All, |
| 820 | |
| 821 | Please see the attachments for test results. |
| 822 | The repository of junit test reports can be found under: ${QA.test.dir}\unitTestReport\${package.version}\ |
| 823 | |
| 824 | Please visit [ http://qa-build:8080/BuildCentral ] for more information. |
| 825 | |
| 826 | Have a nice day! |
| 827 | </message> |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 828 | <!-- |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 829 | <fileset dir="${test.dir}/unitTestReport/html"> |
Xiaoying Gu | bf0c099 | 2008-06-10 08:59:26 +0000 | [diff] [blame] | 830 | |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 831 | <include name="TESTS-EngineSmokeTests.html"/> |
| 832 | <include name="TESTS-DtESmokeTests.html"/> |
Xiaoying Gu | bf0c099 | 2008-06-10 08:59:26 +0000 | [diff] [blame] | 833 | |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 834 | <include name="org.eclipse.birt.report.tests.model.AllTests.html"/> |
| 835 | <include name="org.eclipse.birt.report.tests.engine.AllTests.html"/> |
| 836 | <include name="org.eclipse.birt.report.tests.chart.AllTests.html"/> |
| 837 | <include name="org.eclipse.birt.tests.data.engine.AllTests.html"/> |
| 838 | <include name="org.eclipse.birt.report.tests.regression.AllTests.html"/> |
| 839 | </fileset> |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 840 | --> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 841 | </mail> |
| 842 | </target> |
| 843 | |
| 844 | <target name="checkErrorExist"> |
| 845 | <property file="${eclipse.build.configs}/../../monitor.properties" /> |
| 846 | <condition property="has.compile.error" value="true"> |
| 847 | <equals arg1="${compileHasError}" arg2="true" /> |
| 848 | </condition> |
Xiaoying Gu | bf0c099 | 2008-06-10 08:59:26 +0000 | [diff] [blame] | 849 | <echo message="${has.compile.error}"/> |
| 850 | <echo message="monitor: ${eclipse.build.configs}/../../monitor.properties" /> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 851 | </target> |
| 852 | |
| 853 | <target name="checkCompileError" depends="checkErrorExist" if="has.compile.error" > |
| 854 | <property file="${eclipse.build.configs}/../../config.properties" /> |
| 855 | <property file="${eclipse.build.configs}/../../monitor.properties" /> |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 856 | <echo message="${mail.port}"/> |
| 857 | <echo message="${buildId}"/> |
| 858 | <echo message="${COMPILE.ERROR.RECIPIENTS}"/> |
| 859 | <echo message="${mail.from}"/> |
| 860 | <echo message="${replyto.address}"/> |
| 861 | <echo message="${error.plugin.list}"/> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 862 | |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 863 | <echo message="${postingDirectory}/${buildId}/compilelogs/plugins"/> |
Xiaoying Gu | ac40e23 | 2010-06-02 08:09:39 +0000 | [diff] [blame] | 864 | <mail mailport="${mail.port}" subject="Compile errors found in Today's Datatools 1.8.1 Build (BuildId: ${buildId} ) " tolist="${COMPILE.ERROR.RECIPIENTS.LOCAL}"> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 865 | <from address="${mail.from}"/> |
| 866 | <replyto address="${replyto.address}"/> |
| 867 | <message> |
| 868 | Hi All, |
| 869 | |
Xiaoying Gu | c4f3d6e | 2008-03-31 09:51:29 +0000 | [diff] [blame] | 870 | Compile errors are found in today's DTP build(BuildId: ${buildId}): |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 871 | |
| 872 | ${error.plugin.list} |
| 873 | |
| 874 | Please see the attachments for details. |
| 875 | |
| 876 | Have a nice day! |
| 877 | </message> |
Xiaoying Gu | bf0c099 | 2008-06-10 08:59:26 +0000 | [diff] [blame] | 878 | <attachments> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 879 | <fileset dir="${postingDirectory}/${buildId}/compilelogs/plugins"> |
| 880 | <include name="*compilelog.html"/> |
| 881 | </fileset> |
Xiaoying Gu | bf0c099 | 2008-06-10 08:59:26 +0000 | [diff] [blame] | 882 | </attachments> |
Xiaoying Gu | b98c481 | 2008-03-11 06:27:01 +0000 | [diff] [blame] | 883 | </mail> |
| 884 | </target> |
| 885 | |
| 886 | <target name="generateCompileSummary"> |
| 887 | |
| 888 | <property file="config.properties" /> |
| 889 | <property name="tool.lib.path" value="${p4.home}/dailybuild/source/org.eclipse.birt.build"/> |
| 890 | <property name="compile.log.summary" value="${postingDirectory}/compileSummary.properties"/> |
| 891 | |
| 892 | <path id="customjar.classpath"> |
| 893 | <path location="${tool.lib.path}/customtask.jar" /> |
| 894 | <fileset dir="${tool.lib.path}/lib"> |
| 895 | <include name="*.jar"/> |
| 896 | </fileset> |
| 897 | </path> |
| 898 | |
| 899 | <delete file="${compile.log.summary}" failonerror="false" /> |
| 900 | <!-- Using custom build tools to get failure/error summary of test result --> |
| 901 | <java classname="org.eclipse.birt.build.ParseCompileSummary"> |
| 902 | <classpath refid="customjar.classpath" /> |
| 903 | <arg value="${postingDirectory}/${buildId}/compilelogs/plugins" /> |
| 904 | <arg value="${compile.log.summary}" /> |
| 905 | <arg value="Y" /> |
| 906 | <arg value="Y" /> |
| 907 | </java> |
| 908 | </target> |
| 909 | </project> |