ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 1 | <project name="Publish Build" default="default" basedir="."> |
| 2 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 3 | <!-- Properties that must be passed to this script: |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 4 | buildDirectory: Path to perform the build in. (A working directory) |
| 5 | buildType: Type of build (nightly, integration etc.) |
| 6 | buildId: Build name |
| 7 | buildLabel: <buildType>-<buildName>-<timestamp> |
| 8 | --> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 9 | |
| 10 | <property environment="env" /> |
| 11 | |
| 12 | <property name="resultDir" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 13 | value="${buildDirectory}/${buildLabel}" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 14 | <!--name of generated index page--> |
| 15 | <property name="indexFileName" value="index.php" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 16 | |
| 17 | <property name="templateDir" value="${wtp.builder.home}/distribution/wtp.site" /> |
| 18 | <property name="resultingIndex" value="${resultDir}/${indexFileName}" /> |
| 19 | |
| 20 | <echo message="resultDir: ${resultDir}" /> |
| 21 | <echo message="templateDir: ${templateDir}" /> |
| 22 | <echo message="resultingIndex: ${resultingIndex}" /> |
| 23 | |
| 24 | |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 25 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 26 | <target name="default"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 27 | <copy overwrite="true" file="${wtp.builder.home}/distribution/wtp.site/templateFiles/${indexTemplateFilename}" tofile="${resultingIndex}" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 28 | <antcall target="countFiles" /> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 29 | <antcall target="generateCompileIndex" /> |
| 30 | <antcall target="generateJUnitTestsIndex" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 31 | <antcall target="getStaticFiles" /> |
| 32 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 33 | |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 34 | <target name="generateCompileIndex" > |
| 35 | |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 36 | |
david_williams | 6252b61 | 2007-02-25 07:23:43 +0000 | [diff] [blame] | 37 | <!-- |
| 38 | <taskdef name="indexResults" classname="org.eclipse.wtp.releng.tools.ResultsSummaryGenerator" /> |
| 39 | --> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 40 | |
| 41 | <!-- |
| 42 | isBuildTested: true|false should JUnit plugin test results be used to generate index page |
| 43 | dropTokenList: comma separated list of strings which should be replaced by the fileName attribute settings in the testManifest.xml. |
| 44 | xmlDirectoryName: path to directory containing JUnit plugin test results in xml format (see doc is org.eclipse.test). |
| 45 | dropDirectoryName: path to directory containing the result of the build. |
| 46 | testResultsTemplateFileName: path to template file used to generate page with links to JUnit test results |
| 47 | testResultsHtmlFileName: name of file which will be generated with links to JUnit test results |
| 48 | dropHtmlFileName: name of generated index page |
| 49 | hrefTestResultsTargetPath: relative path from index page to directory containing JUnit html test results |
| 50 | hrefCompileLogsTargetPath: relative path from index page directory containing compilelogs |
| 51 | testManifestFileName: name of xml file containing descriptions of zip types and log files |
| 52 | |
| 53 | |
| 54 | |
| 55 | --> |
| 56 | <property file="${buildDirectory}/maps/releng/maps/dependencies.properties" /> |
| 57 | |
| 58 | <!-- create tables of test plugin compiles first --> |
david_williams | 6252b61 | 2007-02-25 07:23:43 +0000 | [diff] [blame] | 59 | <summarizeResults isBuildTested="false" |
| 60 | includeAll="true" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 61 | dropTokenList="${dropTokenList}" |
| 62 | xmlDirectoryName="" |
| 63 | dropDirectoryName="${resultDir}" |
| 64 | testResultsTemplateFileName="${templateDir}/templateFiles/testCompileResults.php.template" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 65 | testResultsHtmlFileName="testCompileResults.php" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 66 | hrefTestResultsTargetPath="" |
| 67 | hrefCompileLogsTargetPath="testcompilelogs" |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 68 | compileLogsDirectoryName="${resultDir}/testcompilelogs" /> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 69 | |
david_williams | 0b74c59 | 2007-04-09 06:11:35 +0000 | [diff] [blame] | 70 | <xslt |
| 71 | basedir="${resultDir}/testcompilelogs" |
| 72 | destdir="${resultDir}/testcompilelogs" |
| 73 | includes="**/*.bin.xml" |
| 74 | scanincludeddirectories="true" |
| 75 | style="compilerXMLOutputToHTML.xsl" |
| 76 | force="true" /> |
| 77 | |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 78 | <!-- create table of code plugins compiles --> |
david_williams | 6252b61 | 2007-02-25 07:23:43 +0000 | [diff] [blame] | 79 | <summarizeResults isBuildTested="false" |
| 80 | includeAll="true" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 81 | dropTokenList="${dropTokenList}" |
| 82 | xmlDirectoryName="" |
| 83 | dropDirectoryName="${resultDir}" |
| 84 | testResultsTemplateFileName="${templateDir}/templateFiles/compileResults.php.template" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 85 | testResultsHtmlFileName="compileResults.php" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 86 | hrefTestResultsTargetPath="testResults/html" |
| 87 | hrefCompileLogsTargetPath="compilelogs" |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 88 | compileLogsDirectoryName="${resultDir}/compilelogs" /> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 89 | |
| 90 | |
david_williams | 0b74c59 | 2007-04-09 06:11:35 +0000 | [diff] [blame] | 91 | <xslt |
| 92 | basedir="${resultDir}/compilelogs" |
| 93 | destdir="${resultDir}/compilelogs" |
| 94 | includes="**/*.bin.xml" |
| 95 | scanincludeddirectories="true" |
| 96 | style="compilerXMLOutputToHTML.xsl" |
| 97 | force="true" /> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 98 | |
| 99 | <tstamp> |
| 100 | <format property="TODAY" |
| 101 | pattern="MMMM d, yyyy" /> |
| 102 | </tstamp> |
| 103 | |
| 104 | <!-- Insert Build Type descriptor --> |
| 105 | <antcall target="${buildType}" /> |
| 106 | |
| 107 | <!-- Insert Build Date --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 108 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 109 | token="@date@" |
| 110 | value="${TODAY}" /> |
| 111 | |
| 112 | <!-- Insert Build Name --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 113 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 114 | token="@build@" |
| 115 | value="${buildLabel}" /> |
| 116 | |
| 117 | <!-- Insert Mirror Name --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 118 | <!-- |
| 119 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 120 | token="@mirror@" |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 121 | value="\${downloadprefix}" /> |
| 122 | --> |
| 123 | <!-- value="${webtoolsDownloadURL}/${buildBranch}/${buildLabel}/" /> --> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 124 | |
| 125 | <!-- Insert PreRequsites --> |
| 126 | |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 127 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 128 | token="@eclipseFile@" |
| 129 | value="${eclipse.file.linux-gtk-x86}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 130 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 131 | token="@eclipseURL@" |
| 132 | value="${eclipse.url}/${eclipse.file.linux-gtk-x86}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 133 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 134 | token="@eclipseBuildURL@" |
| 135 | value="${eclipse.url}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 136 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 137 | token="@emfFile@" |
| 138 | value="${emf.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 139 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 140 | token="@emfURL@" |
| 141 | value="${emf.url}/${emf.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 142 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 143 | token="@gefFile@" |
| 144 | value="${gef.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 145 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 146 | token="@gefURL@" |
| 147 | value="${gef.url}/${gef.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 148 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 149 | token="@jemFile@" |
| 150 | value="${jem.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 151 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 152 | token="@jemURL@" |
| 153 | value="${jem.url}/${jem.file}" /> |
| 154 | <!-- |
| 155 | these token/s should not exist in maintenance stream, but |
| 156 | no harm done, so in the interests of keeping builder |
| 157 | streams in sync, we'll leave them here as place hold |
| 158 | --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 159 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 160 | token="@dtpFile@" |
| 161 | value="${dtp.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 162 | <replace file="${resultingIndex}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 163 | token="@dtpURL@" |
| 164 | value="${dtp.url}/${dtp.file}" /> |
| 165 | |
| 166 | <mkdir dir="${resultDir}/whatisfixed" /> |
| 167 | <echo file="${resultDir}/whatisfixed/buglog.html" |
| 168 | append="true"> |
| 169 | what is fixed list is not available yet! |
| 170 | </echo> |
| 171 | |
| 172 | <!-- Update timestamp on file to permit overwrite through Ant copy task --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 173 | <touch file="${resultingIndex}" /> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 174 | </target> |
| 175 | |
| 176 | <target name="generateJUnitTestsIndex" depends="checkIfTested" if="doTests"> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 177 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 178 | <!-- |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 179 | isBuildTested: true|false should JUnit plugin test results be used to generate index page |
| 180 | dropTokenList: comma separated list of strings which should be replaced by the fileName attribute settings in the testManifest.xml. |
| 181 | xmlDirectoryName: path to directory containing JUnit plugin test results in xml format (see doc is org.eclipse.test). |
| 182 | dropDirectoryName: path to directory containing the result of the build. |
| 183 | testResultsTemplateFileName: path to template file used to generate page with links to JUnit test results |
| 184 | testResultsHtmlFileName: name of file which will be generated with links to JUnit test results |
| 185 | dropHtmlFileName: name of generated index page |
| 186 | hrefTestResultsTargetPath: relative path from index page to directory containing JUnit html test results |
| 187 | hrefCompileLogsTargetPath: relative path from index page directory containing compilelogs |
| 188 | testManifestFileName: name of xml file containing descriptions of zip types and log files |
| 189 | |
| 190 | |
| 191 | |
| 192 | --> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 193 | <property file="${buildDirectory}/maps/releng/maps/dependencies.properties" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 194 | |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 195 | <!-- create table of test plugin compiles first --> |
david_williams | 944e4d0 | 2006-12-14 05:59:27 +0000 | [diff] [blame] | 196 | <!-- set isBuildTested to true for the "compile only" results --> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 197 | |
david_williams | 58473ad | 2007-03-03 01:12:43 +0000 | [diff] [blame] | 198 | <summarizeResults isBuildTested="true" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 199 | dropTokenList="${dropTokenList}" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 200 | dropDirectoryName="${resultDir}" |
| 201 | xmlDirectoryName="${resultDir}/testResults/xml" |
| 202 | testResultsTemplateFileName="${templateDir}/templateFiles/testResults.php.template" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 203 | testResultsHtmlFileName="testResults.php" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 204 | hrefTestResultsTargetPath="testResults/html" |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 205 | compileLogsDirectoryName=""/> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 206 | |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 207 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 208 | <tstamp> |
| 209 | <format property="TODAY" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 210 | pattern="MMMM d, yyyy" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 211 | </tstamp> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 212 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 213 | <!-- Insert Build Type descriptor --> |
| 214 | <antcall target="${buildType}" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 215 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 216 | <!-- Insert Build Date --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 217 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 218 | token="@date@" |
| 219 | value="${TODAY}" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 220 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 221 | <!-- Insert Build Name --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 222 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 223 | token="@build@" |
| 224 | value="${buildLabel}" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 225 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 226 | <!-- Insert Mirror Name --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 227 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 228 | token="@mirror@" |
| 229 | value="${webtoolsDownloadURL}/${buildBranch}/${buildLabel}/" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 230 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 231 | <!-- Insert PreRequsites --> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 232 | |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 233 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 234 | token="@eclipseFile@" |
| 235 | value="${eclipse.file.linux-gtk-x86}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 236 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 237 | token="@eclipseURL@" |
| 238 | value="${eclipse.url}/${eclipse.file.linux-gtk-x86}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 239 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 240 | token="@eclipseBuildURL@" |
| 241 | value="${eclipse.url}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 242 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 243 | token="@emfFile@" |
| 244 | value="${emf.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 245 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 246 | token="@emfURL@" |
david_williams | 254309b | 2006-12-16 19:15:23 +0000 | [diff] [blame] | 247 | value="${emf.url}/${emf.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 248 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 249 | token="@gefFile@" |
| 250 | value="${gef.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 251 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 252 | token="@gefURL@" |
| 253 | value="${gef.url}/${gef.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 254 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 255 | token="@jemFile@" |
| 256 | value="${jem.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 257 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 258 | token="@jemURL@" |
| 259 | value="${jem.url}/${jem.file}" /> |
| 260 | <!-- |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 261 | these token/s should not exist in maintenance stream, but |
| 262 | no harm done, so in the interests of keeping builder |
| 263 | streams in sync, we'll leave them here as place hold |
| 264 | --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 265 | <replace file="${resultingIndex}" |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 266 | token="@dtpFile@" |
| 267 | value="${dtp.file}" /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 268 | <replace file="${resultingIndex}" |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 269 | token="@dtpURL@" |
| 270 | value="${dtp.url}/${dtp.file}" /> |
| 271 | |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 272 | <mkdir dir="${resultDir}/whatisfixed" /> |
| 273 | <echo file="${resultDir}/whatisfixed/buglog.html" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 274 | append="true"> |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 275 | what is fixed list is not available yet! |
| 276 | </echo> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 277 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 278 | <!-- Update timestamp on file to permit overwrite through Ant copy task --> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 279 | <touch file="${resultingIndex}" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 280 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 281 | |
| 282 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 283 | <target name="getStaticFiles"> |
| 284 | <!--get static files required in the buildLabel directory--> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 285 | <copy todir="${resultDir}"> |
| 286 | <fileset dir="${templateDir}/staticDropFiles" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 287 | </copy> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 288 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 289 | <!--copy buildnotes from plugin directories--> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 290 | <mkdir dir="${resultDir}/buildnotes" /> |
| 291 | <copy todir="${resultDir}/buildnotes" flatten="true"> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 292 | <fileset dir="${buildDirectory}/plugins" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 293 | includes="**/buildnotes_*.html" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 294 | </copy> |
david_williams | b2d7f2b | 2007-03-25 02:53:33 +0000 | [diff] [blame] | 295 | |
| 296 | |
| 297 | <copy file="${templateDir}/staticDropFiles/logIndex.php" tofile="${resultDir}/testResults/consolelogs/full/logIndex.php" /> |
| 298 | <copy file="${templateDir}/staticDropFiles/logIndex.php" tofile="${resultDir}/testResults/consolelogs/testLogs/logIndex.php" /> |
| 299 | <copy file="${templateDir}/staticDropFiles/logIndex.php" tofile="${resultDir}/testResults/consolelogs/testSysErrorLogs/logIndex.php" /> |
| 300 | |
| 301 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 302 | </target> |
david_williams | 50f2a4a | 2007-01-02 05:02:05 +0000 | [diff] [blame] | 303 | |
| 304 | <target name="updateSite"> |
| 305 | |
| 306 | |
| 307 | <!-- get our authored, tokenized site.xml file --> |
| 308 | <copy file="${wtp.builder.home}/distribution/wtp.site/templateFiles/siteWTP.xml" |
| 309 | tofile="${buildDirectory}/${buildLabel}/updateSite/site.xml" overwrite="true" failonerror="true"/> |
| 310 | <!-- get the ${buildDirectory}/finalPluginsVersions.properties, and |
| 311 | read as properties --> |
| 312 | <!-- substitute property value for tokens --> |
| 313 | <replace file="${buildDirectory}/${buildLabel}/updateSite/site.xml" |
| 314 | propertyfile="${buildDirectory}/finalFeaturesVersions.properties" > |
| 315 | <replacefilter token="@org.eclipse.wst@" |
| 316 | property="org.eclipse.wst" /> |
| 317 | <replacefilter token="@org.eclipse.wst.sdk@" |
| 318 | property="org.eclipse.wst.sdk" /> |
| 319 | <replacefilter token="@org.eclipse.jst@" |
| 320 | property="org.eclipse.jst" /> |
| 321 | <replacefilter token="@org.eclipse.jst.sdk@" |
| 322 | property="org.eclipse.jst.sdk" /> |
| 323 | |
| 324 | <replacefilter token="@org.eclipse.jst.jsf.feature@" |
| 325 | property="org.eclipse.jst.jsf.feature" /> |
| 326 | <replacefilter token="@org.eclipse.jst.jsf_sdk.feature@" |
| 327 | property="org.eclipse.jst.jsf_sdk.feature" /> |
david_williams | eb49d08 | 2007-05-01 03:03:15 +0000 | [diff] [blame] | 328 | <replacefilter token="@org.eclipse.jpt.feature@" |
| 329 | property="org.eclipse.jpt.feature" /> |
| 330 | <replacefilter token="@org.eclipse.jpt_sdk.feature@" |
| 331 | property="org.eclipse.jpt_sdk.feature" /> |
david_williams | 50f2a4a | 2007-01-02 05:02:05 +0000 | [diff] [blame] | 332 | </replace> |
| 333 | |
| 334 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 335 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 336 | <target name="countFiles"> |
david_williams | 0b45fcf | 2007-03-29 15:28:18 +0000 | [diff] [blame] | 337 | <!-- |
| 338 | files.count is a file that should exist in the drop directory with a count of the zip files in the same directory. |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 339 | It is required to generate a link to the build on the downloads page. |
david_williams | a76816d | 2006-12-11 20:10:22 +0000 | [diff] [blame] | 340 | --> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 341 | |
david_williams | 0b45fcf | 2007-03-29 15:28:18 +0000 | [diff] [blame] | 342 | <countBuildFiles sourceDirectory="${resultDir}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 343 | filterString=".zip,.tar.gz" |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 344 | outputFile="${resultDir}/files.count" /> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 345 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 346 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 347 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 348 | <!--Build type descriptors--> |
| 349 | <target name="I"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 350 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 351 | token="%wtpandprereqs%" |
| 352 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 353 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 354 | token="@type@" |
| 355 | value="Integration" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 356 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 357 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 358 | <target name="S"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 359 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 360 | token="%wtpandprereqs%" |
| 361 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 362 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 363 | token="@type@" |
| 364 | value="Stable" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 365 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 366 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 367 | <target name="N"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 368 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 369 | token="%wtpandprereqs%" |
| 370 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 371 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 372 | token="@type@" |
| 373 | value="Nightly" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 374 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 375 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 376 | <target name="M"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 377 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 378 | token="%wtpandprereqs%" |
| 379 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 380 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 381 | token="@type@" |
| 382 | value="Maintenance" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 383 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 384 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 385 | <target name="R"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 386 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 387 | token="%wtpandprereqs%" |
| 388 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 389 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 390 | token="@type@" |
| 391 | value="Release" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 392 | </target> |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 393 | |
| 394 | |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 395 | <target name="T"> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 396 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 397 | token="%wtpandprereqs%" |
| 398 | value=" " /> |
david_williams | 535d681 | 2007-03-29 06:46:26 +0000 | [diff] [blame] | 399 | <replace file="${resultingIndex}" |
david_williams | 4d2fe84 | 2006-12-13 06:26:45 +0000 | [diff] [blame] | 400 | token="@type@" |
| 401 | value="Test" /> |
david_williams | c84ab8c | 2006-12-11 18:50:34 +0000 | [diff] [blame] | 402 | </target> |
david_williams | b7db8ba | 2007-02-19 01:54:04 +0000 | [diff] [blame] | 403 | |
| 404 | |
| 405 | <target name="checkIfTested"> |
| 406 | <echo message="isBuildTested: ${isBuildTested}" /> |
| 407 | <condition property="doTests"> |
| 408 | <equals arg1="${isBuildTested}" |
| 409 | arg2="true" |
| 410 | trim="true" |
| 411 | casesensitive="false" /> |
| 412 | </condition> |
| 413 | </target> |
| 414 | |
ndai | b8cedc8 | 2005-09-13 18:00:32 +0000 | [diff] [blame] | 415 | |
| 416 | </project> |