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