jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 1 | <project default="main" basedir="."> |
| 2 | |
| 3 | <!-- |
| 4 | Required inputs: |
| 5 | |
| 6 | build.home |
| 7 | buildType |
| 8 | buildId |
| 9 | timestamp |
| 10 | baseos |
| 11 | basews |
| 12 | basearch |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 13 | build.stream [optional] |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 14 | build.committers [optional] |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 15 | releng.tag [optional] |
| 16 | wtp.dir [optional] |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 17 | clean [optional] |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 18 | --> |
| 19 | |
| 20 | <target name="main"> |
| 21 | <property file="${build.home}/releng.wtpbuilder/build.properties"/> |
jeffliu | ec0a597 | 2006-05-31 03:06:54 +0000 | [diff] [blame] | 22 | <property file="${build.home}/releng.wtpbuilder/distribution/wtp.api/api.properties"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 23 | <property name="wtp.api" value="${build.home}/releng.wtpbuilder/distribution/wtp.api"/> |
jeffliu | 7b32505 | 2006-03-16 21:06:55 +0000 | [diff] [blame] | 24 | <property name="apiRoot" value="${build.home}/apiRoot"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 25 | <delete dir="${apiRoot}" failonerror="false"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 26 | <mkdir dir="${apiRoot}"/> |
| 27 | <antcall target="getReleng"/> |
| 28 | <property file="${apiRoot}/releng/maps/dependencies.properties"/> |
| 29 | <property name="local.cache.dir" value="${build.home}/${build.local.repository}"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 30 | <property name="wtp.dir" value="${local.cache.dir}"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 31 | <property name="install.destination" value="${apiRoot}"/> |
| 32 | <antcall target="getDependencies"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 33 | <condition property="wtp-sdk" value="wtp-sdk-${buildId}.zip" else="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip"> |
| 34 | <available file="${wtp.dir}/wtp-sdk-${buildId}.zip"/> |
| 35 | </condition> |
| 36 | <condition property="wtp-wst-tests" value="wtp-wst-Automated-Tests-${buildId}.zip" else="wtp-wst-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip"> |
| 37 | <available file="${wtp.dir}/wtp-wst-Automated-Tests-${buildId}.zip"/> |
| 38 | </condition> |
| 39 | <condition property="wtp-jst-tests" value="wtp-jst-Automated-Tests-${buildId}.zip" else="wtp-jst-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip"> |
| 40 | <available file="${wtp.dir}/wtp-jst-Automated-Tests-${buildId}.zip"/> |
| 41 | </condition> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 42 | <antcall target="run"/> |
| 43 | </target> |
| 44 | |
| 45 | <target name="getReleng"> |
| 46 | <property name="releng.tag" value="v${buildType}${timestamp}"/> |
| 47 | <cvs |
david_williams | 0e4fcd0 | 2005-11-06 20:10:58 +0000 | [diff] [blame] | 48 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 49 | package="releng" |
| 50 | dest="${apiRoot}" |
| 51 | command="export" |
| 52 | tag="${releng.tag}" |
| 53 | /> |
| 54 | </target> |
| 55 | |
| 56 | <target name="getDependencies"> |
| 57 | <antcall target="getAndInstall"> |
| 58 | <param name="groupId" value="eclipse" /> |
| 59 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 60 | <antcall target="getAndInstall"> |
| 61 | <param name="groupId" value="eclipseTestFramework" /> |
| 62 | <param name="clean" value="true" /> |
| 63 | </antcall> |
| 64 | <antcall target="getAndInstall"> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 65 | <param name="groupId" value="emf" /> |
| 66 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 67 | <antcall target="getAndInstall"> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 68 | <param name="groupId" value="gef" /> |
| 69 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 70 | <antcall target="getAndInstall"> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 71 | <param name="groupId" value="jem" /> |
| 72 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 73 | <antcall target="getAndInstall"> |
| 74 | <param name="groupId" value="tomcat.5" /> |
| 75 | </antcall> |
| 76 | <antcall target="getAndInstall"> |
| 77 | <param name="groupId" value="jonas.4" /> |
| 78 | </antcall> |
| 79 | <antcall target="getAndInstall"> |
| 80 | <param name="groupId" value="oagis.release" /> |
| 81 | </antcall> |
| 82 | <antcall target="getAndInstall"> |
| 83 | <param name="groupId" value="oagis.wsdl" /> |
| 84 | </antcall> |
| 85 | <antcall target="get"> |
jeffliu | 7b32505 | 2006-03-16 21:06:55 +0000 | [diff] [blame] | 86 | <param name="groupId" value="eclipse" /> |
| 87 | <param name="baseos" value="win32" /> |
| 88 | <param name="basews" value="win32" /> |
| 89 | <param name="basearch" value="x86" /> |
| 90 | </antcall> |
| 91 | <antcall target="get"> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 92 | <param name="groupId" value="tptp" /> |
| 93 | </antcall> |
| 94 | <mkdir dir="${apiRoot}/piagent"/> |
| 95 | <condition property="isLinux"> |
| 96 | <equals arg1="${baseos}" arg2="linux"/> |
| 97 | </condition> |
| 98 | <antcall target="setupPIAgent.linux"/> |
| 99 | <antcall target="setupPIAgent.win32"/> |
| 100 | <antcall target="getAndInstallWTP"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 101 | <param name="file" value="wtp-sdk-${buildId}.zip" /> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 102 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 103 | <antcall target="getAndInstallWTP"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 104 | <param name="file" value="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip" /> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 105 | </antcall> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 106 | <antcall target="getAndInstallWTP"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 107 | <param name="file" value="wtp-wst-Automated-Tests-${buildId}.zip" /> |
| 108 | </antcall> |
| 109 | <antcall target="getAndInstallWTP"> |
| 110 | <param name="file" value="wtp-wst-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip" /> |
| 111 | </antcall> |
| 112 | <antcall target="getAndInstallWTP"> |
| 113 | <param name="file" value="wtp-jst-Automated-Tests-${buildId}.zip" /> |
| 114 | </antcall> |
| 115 | <antcall target="getAndInstallWTP"> |
| 116 | <param name="file" value="wtp-jst-Automated-Tests-${buildType}-${buildId}-${timestamp}.zip" /> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 117 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 118 | <delete file="${local.cache.dir}/wtp-apiscanner.zip"/> |
| 119 | <get src="http://download.eclipse.org/webtools/downloads/wtp-apiscanner.zip" dest="${local.cache.dir}/wtp-apiscanner.zip"/> |
| 120 | <unzip src="${local.cache.dir}/wtp-apiscanner.zip" dest="${apiRoot}"/> |
| 121 | </target> |
| 122 | |
| 123 | <target name="get"> |
| 124 | <property name="dependencyTargets" value="${build.home}/releng.wtpbuilder/scripts/dependency/build.xml"/> |
| 125 | <ant antfile="${dependencyTargets}" target="checkDependency"> |
| 126 | <property name="groupId" value="${groupId}" /> |
| 127 | </ant> |
| 128 | </target> |
| 129 | |
| 130 | <target name="getAndInstall"> |
| 131 | <property name="dependencyTargets" value="${build.home}/releng.wtpbuilder/scripts/dependency/build.xml"/> |
| 132 | <ant antfile="${dependencyTargets}" target="checkDependency"> |
| 133 | <property name="groupId" value="${groupId}" /> |
| 134 | </ant> |
| 135 | <ant antfile="${dependencyTargets}" target="installDependency"> |
| 136 | <property name="groupId" value="${groupId}" /> |
| 137 | </ant> |
| 138 | </target> |
| 139 | |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 140 | <target name="getAndInstallWTP"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 141 | <available file="${wtp.dir}/${file}" property="file.exists"/> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 142 | <antcall target="getWTP"/> |
jeffliu | 5b5e8d3 | 2006-03-07 22:20:08 +0000 | [diff] [blame] | 143 | <available file="${wtp.dir}/${file}" property="file.exists"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 144 | <antcall target="installWTP"/> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 145 | </target> |
| 146 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 147 | <target name="getWTP"> |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 148 | <condition property="file.url.1" value="http://download.eclipse.org/webtools/committers" else="http://download.eclipse.org/webtools/downloads"> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 149 | <isset property="build.committers"/> |
| 150 | </condition> |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 151 | <condition property="file.url" value="${file.url.1}/drops/${build.stream}/${buildType}-${buildId}-${timestamp}" else="${file.url.1}/drops/${buildType}-${buildId}-${timestamp}"> |
| 152 | <isset property="build.stream"/> |
| 153 | </condition> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 154 | <antcall target="getWTP2"/> |
| 155 | </target> |
| 156 | |
| 157 | <target name="getWTP2" unless="file.exists"> |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 158 | <property name="file.url" value="http://download.eclipse.org/webtools/downloads/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 159 | <mkdir dir="${wtp.dir}"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 160 | <get dest="${wtp.dir}/${file}" src="${file.url}/${file}" ignoreerrors="true"/> |
| 161 | </target> |
| 162 | |
| 163 | <target name="installWTP" if="file.exists"> |
| 164 | <unzip src="${wtp.dir}/${file}" dest="${install.destination}" overwrite="true"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 165 | </target> |
| 166 | |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 167 | <target name="setupPIAgent.linux" if="isLinux"> |
| 168 | <unzip src="${local.cache.dir}/${tptp.file.linux-gtk-x86}" dest="${apiRoot}/piagent"> |
| 169 | <patternset> |
| 170 | <include name="lib/*"/> |
| 171 | </patternset> |
| 172 | </unzip> |
| 173 | <move todir="${apiRoot}/piagent" flatten="true"> |
| 174 | <fileset dir="${apiRoot}/piagent/lib"/> |
| 175 | </move> |
| 176 | </target> |
| 177 | |
| 178 | <target name="setupPIAgent.win32" unless="isLinux"> |
| 179 | <unzip src="${local.cache.dir}/${tptp.file.win32-win32-x86}" dest="${apiRoot}/piagent"> |
| 180 | <patternset> |
| 181 | <include name="bin/*"/> |
| 182 | </patternset> |
| 183 | </unzip> |
| 184 | <move todir="${apiRoot}/piagent" flatten="true"> |
| 185 | <fileset dir="${apiRoot}/piagent/bin"/> |
| 186 | </move> |
| 187 | </target> |
| 188 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 189 | <target name="run"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 190 | <cvs |
| 191 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
| 192 | package="releng.builder/tools/apitools/adopter_usages" |
| 193 | dest="${apiRoot}" |
| 194 | command="export" |
| 195 | tag="HEAD" |
| 196 | /> |
| 197 | <mkdir dir="${apiRoot}/adopters"/> |
| 198 | <antcall target="runEclipseApp"> |
| 199 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.APIRefCompatibilityScanner"/> |
jeffliu | d82b77b | 2006-06-28 15:16:30 +0000 | [diff] [blame] | 200 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${wtp-sdk},${local.cache.dir}/${eclipse.file.win32-win32-x86},${local.cache.dir}/${emf.file},${local.cache.dir}/${gef.file},${local.cache.dir}/${jem.file} -Duse=${apiRoot}/releng.builder/tools/apitools/adopter_usages -DoutputDir=${apiRoot}/adopters -Xmx512M"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 201 | </antcall> |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 202 | <copy tofile="${apiRoot}/apiresults/api-ref-compatibility.html" file="${apiRoot}/adopters/api-ref-compatibility.html"/> |
| 203 | <copy tofile="${apiRoot}/apiresults/api-ref-compatibility.xml" file="${apiRoot}/adopters/api-ref-compatibility.xml"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 204 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 205 | <antcall target="runEclipseApp"> |
| 206 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/> |
jeffliu | 7b32505 | 2006-03-16 21:06:55 +0000 | [diff] [blame] | 207 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${eclipse.file.win32-win32-x86} -DoutputDir=${apiRoot}/api-eclipse -Dexcludes=.*internal.*"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 208 | </antcall> |
| 209 | <antcall target="runEclipseApp"> |
| 210 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/> |
| 211 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${emf.file} -DoutputDir=${apiRoot}/api-emf -Dexcludes=.*internal.*"/> |
| 212 | </antcall> |
| 213 | <antcall target="runEclipseApp"> |
| 214 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/> |
| 215 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${gef.file} -DoutputDir=${apiRoot}/api-gef -Dexcludes=.*internal.*"/> |
| 216 | </antcall> |
| 217 | <antcall target="runEclipseApp"> |
| 218 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/> |
| 219 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${jem.file} -DoutputDir=${apiRoot}/api-jem -Dexcludes=.*internal.*"/> |
| 220 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 221 | <antcall target="runEclipseApp"> |
| 222 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/> |
| 223 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${wtp-sdk} -DoutputDir=${apiRoot}/api-wtp"/> |
| 224 | </antcall> |
| 225 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 226 | <antcall target="runJavaMain"> |
| 227 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.violation.APIViolationScanner"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 228 | <param name="args" value="-src ${local.cache.dir}/${wtp-sdk} -api ${apiRoot}/api-eclipse ${apiRoot}/api-emf ${apiRoot}/api-gef ${apiRoot}/api-jem -outputDir ${apiRoot}/apiresults -html -includes org.eclipse.* -excludes org.eclipse.wst.* org.eclipse.jst.* -debug"/> |
jeffliu | 5ea4635 | 2005-10-07 18:22:40 +0000 | [diff] [blame] | 229 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 230 | |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 231 | <antcall target="runJavaMain"> |
| 232 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.API2ComponentAPI"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 233 | <param name="args" value="-src ${local.cache.dir}/${wtp-sdk} -api ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -html"/> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 234 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 235 | |
jeffliu | 5ea4635 | 2005-10-07 18:22:40 +0000 | [diff] [blame] | 236 | <antcall target="runEclipseApp"> |
| 237 | <param name="application" value="org.eclipse.wtp.releng.tools.component.core.JavadocScanner"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 238 | <param name="vmargs" value="-Dsrc=${local.cache.dir}/${wtp-sdk} -DoutputDir=${apiRoot}/apiresults -Dapi=${local.cache.dir}/${wtp-sdk} -Dexcludes=.*internal.* -DskipAPIGen=true -Dhtml=true"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 239 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 240 | |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 241 | <antcall target="runJavaMain"> |
| 242 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.violation.NonAPIDependencyScanner"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 243 | <param name="args" value="-src ${local.cache.dir}/${wtp-sdk} -api ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -refapi ${apiRoot}/api-eclipse ${apiRoot}/api-emf ${apiRoot}/api-gef ${apiRoot}/api-jem -includes org.eclipse.* -skipAPIGen"/> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 244 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 245 | |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 246 | <mkdir dir="${apiRoot}/results/consolelogs"/> |
| 247 | <copy todir="${apiRoot}" overwrite="true"> |
| 248 | <fileset dir="${build.home}/releng.wtpbuilder/distribution/wtp.tests/testScripts"/> |
| 249 | </copy> |
| 250 | <copy file="${build.home}/releng.wtpbuilder/distribution/wtp.api/testScripts/test.xml" tofile="${apiRoot}/test.xml" overwrite="true"/> |
| 251 | <ant antfile="${build.home}/releng.wtpbuilder/distribution/wtp.tests/build.xml" target="runTestEclipse"> |
| 252 | <property name="testRoot" value="${apiRoot}"/> |
jeffliu | bbb80d2 | 2006-03-15 01:37:43 +0000 | [diff] [blame] | 253 | <property name="testTarget" value="all"/> |
jeffliu | 9821727 | 2005-10-07 21:27:07 +0000 | [diff] [blame] | 254 | </ant> |
jeffliu | ee9872f | 2005-10-20 01:51:18 +0000 | [diff] [blame] | 255 | <antcall target="runJavaMain"> |
| 256 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.tptp.CodeCoverageScanner"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 257 | <param name="args" value="-api ${local.cache.dir}/${wtp-sdk} -src ${local.cache.dir}/${wtp-sdk} ${local.cache.dir}/${wtp-wst-tests} ${local.cache.dir}/${wtp-jst-tests} -trcxml ${apiRoot}/apiresults/trcxml -outputDir ${apiRoot}/apiresults -skipAPIGen -html"/> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 258 | </antcall> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 259 | |
| 260 | <cvs |
| 261 | cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools" |
| 262 | package="releng.builder/tools/apitools/api_progress" |
| 263 | dest="${apiRoot}" |
| 264 | command="export" |
| 265 | tag="HEAD" |
| 266 | /> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 267 | <antcall target="runJavaMain"> |
| 268 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.progress.APIProgressScanner"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 269 | <param name="args" value="-api ${local.cache.dir}/${wtp-sdk} -src ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -progressDir ${apiRoot}/releng.builder/tools/apitools/api_progress/1.0 -timestamp ${timestamp} -excludes .*infopop .*doc.isv .*doc.user .*source org.eclipse.wst org.eclipse.jst"/> |
jeffliu | ee9872f | 2005-10-20 01:51:18 +0000 | [diff] [blame] | 270 | </antcall> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 271 | |
| 272 | <antcall target="runJavaMain"> |
| 273 | <param name="classname" value="org.eclipse.wtp.releng.tools.component.tptp.CodeCoverageScanner"/> |
jeffliu | d82b77b | 2006-06-28 15:16:30 +0000 | [diff] [blame] | 274 | <param name="args" value="-api ${apiRoot}/api-wtp -src ${local.cache.dir}/${wtp-sdk} ${local.cache.dir}/${wtp-wst-tests} ${local.cache.dir}/${wtp-jst-tests} -trcxml ${apiRoot}/apiresults/trcxml -outputDir ${apiRoot}/apiresults/full_test_coverage -html -includeAllTC -title Test_Coverage_Report"/> |
jeffliu | ebfc3df | 2006-05-31 02:17:15 +0000 | [diff] [blame] | 275 | </antcall> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 276 | </target> |
| 277 | |
| 278 | <target name="runEclipseApp"> |
| 279 | <property name="vmargs" value=""/> |
| 280 | <java classpath="${apiRoot}/eclipse/startup.jar" fork="true" classname="org.eclipse.core.launcher.Main" failonerror="true" timeout="3600000" dir="${apiRoot}"> |
| 281 | <jvmarg value="-Dosgi.ws=${basews}" /> |
| 282 | <jvmarg value="-Dosgi.os=${baseos}" /> |
| 283 | <jvmarg value="-Dosgi.arch=${basearch}" /> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 284 | <jvmarg value="-Xmx256M" /> |
| 285 | <jvmarg line="${vmargs}" /> |
| 286 | <arg value="-application" /> |
| 287 | <arg value="${application}" /> |
| 288 | </java> |
| 289 | </target> |
| 290 | |
| 291 | <target name="runJavaMain"> |
| 292 | <java fork="true" classname="${classname}" failonerror="false" timeout="3600000" dir="${apiRoot}"> |
| 293 | <classpath> |
| 294 | <fileset dir="${apiRoot}/eclipse/plugins"> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 295 | <include name="**/org.eclipse.wtp.releng.tools.component.core*.jar"/> |
| 296 | </fileset> |
| 297 | <fileset dir="${apiRoot}/lib"> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 298 | <include name="**/org.eclipse.jdt.core*.jar"/> |
| 299 | <include name="**/org.eclipse.core.runtime*.jar"/> |
jeffliu | e942a94 | 2005-11-29 17:34:57 +0000 | [diff] [blame] | 300 | <include name="**/org.eclipse.core.resources*.jar"/> |
| 301 | <include name="**/org.eclipse.text*.jar"/> |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 302 | </fileset> |
| 303 | </classpath> |
| 304 | <jvmarg value="-Xmx256M"/> |
| 305 | <arg line="${args}"/> |
| 306 | </java> |
| 307 | </target> |
| 308 | |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 309 | <target name="upload" if="login"> |
jeffliu | 5820f87 | 2006-05-03 14:40:36 +0000 | [diff] [blame] | 310 | <mkdir dir="${build.home}/archives"/> |
| 311 | <zip destfile="${build.home}/archives/${buildType}-${buildId}-${timestamp}.zip" basedir="${build.home}/apiRoot/apiresults"/> |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 312 | <condition property="upload.path.1" |
| 313 | else="${login}@download1.eclipse.org:~/downloads/webtools/downloads" |
| 314 | value="${login}@download1.eclipse.org:~/downloads/webtools/committers"> |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 315 | <isset property="build.committers"/> |
| 316 | </condition> |
jeffliu | 5067e5e | 2006-07-10 19:21:17 +0000 | [diff] [blame] | 317 | <condition property="upload.path" |
| 318 | else="${upload.path.1}/drops/${buildType}-${buildId}-${timestamp}" |
| 319 | value="${upload.path.1}/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"> |
| 320 | <isset property="build.stream"/> |
| 321 | </condition> |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 322 | <exec executable="scp" dir="${build.home}"> |
jeffliu | dcf88c4 | 2006-03-31 17:19:44 +0000 | [diff] [blame] | 323 | <arg line="-r ./apiRoot/apiresults ${upload.path}"/> |
jeffliu | 925d2c9 | 2006-03-07 07:38:36 +0000 | [diff] [blame] | 324 | </exec> |
| 325 | </target> |
| 326 | |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 327 | <target name="clean" if="clean"> |
jeffliu | 568eaef | 2006-05-02 06:51:18 +0000 | [diff] [blame] | 328 | <property file="${build.home}/releng.wtpbuilder/build.properties"/> |
jeffliu | 7c7e724 | 2006-05-01 20:30:52 +0000 | [diff] [blame] | 329 | <property name="local.cache.dir" value="${build.home}/${build.local.repository}"/> |
jeffliu | 7c7e724 | 2006-05-01 20:30:52 +0000 | [diff] [blame] | 330 | <property name="apiRoot" value="${build.home}/apiRoot"/> |
jeffliu | 568eaef | 2006-05-02 06:51:18 +0000 | [diff] [blame] | 331 | <property name="wtp.dir" value="${local.cache.dir}"/> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 332 | <delete dir="${apiRoot}" failonerror="false"/> |
jeffliu | 7c7e724 | 2006-05-01 20:30:52 +0000 | [diff] [blame] | 333 | <delete failonerror="false"> |
| 334 | <fileset dir="${wtp.dir}" includes="wtp-*"/> |
| 335 | </delete> |
jeffliu | c4ea6b0 | 2006-02-28 00:40:33 +0000 | [diff] [blame] | 336 | </target> |
| 337 | |
jeffliu | 20cbe5f | 2005-10-05 19:06:30 +0000 | [diff] [blame] | 338 | </project> |