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