blob: ed7f0d9111857e0634026a70d071c3b7188d60e9 [file] [log] [blame]
jeffliu20cbe5f2005-10-05 19:06:30 +00001<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
jeffliu5067e5e2006-07-10 19:21:17 +000013 build.stream [optional]
jeffliue942a942005-11-29 17:34:57 +000014 build.committers [optional]
jeffliu20cbe5f2005-10-05 19:06:30 +000015 releng.tag [optional]
16 wtp.dir [optional]
jeffliuc4ea6b02006-02-28 00:40:33 +000017 clean [optional]
jeffliu20cbe5f2005-10-05 19:06:30 +000018 -->
19
20 <target name="main">
21 <property file="${build.home}/releng.wtpbuilder/build.properties"/>
jeffliuec0a5972006-05-31 03:06:54 +000022 <property file="${build.home}/releng.wtpbuilder/distribution/wtp.api/api.properties"/>
jeffliu20cbe5f2005-10-05 19:06:30 +000023 <property name="wtp.api" value="${build.home}/releng.wtpbuilder/distribution/wtp.api"/>
jeffliu7b325052006-03-16 21:06:55 +000024 <property name="apiRoot" value="${build.home}/apiRoot"/>
jeffliuc4ea6b02006-02-28 00:40:33 +000025 <delete dir="${apiRoot}" failonerror="false"/>
jeffliu20cbe5f2005-10-05 19:06:30 +000026 <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}"/>
jeffliuc4ea6b02006-02-28 00:40:33 +000030 <property name="wtp.dir" value="${local.cache.dir}"/>
jeffliu20cbe5f2005-10-05 19:06:30 +000031 <property name="install.destination" value="${apiRoot}"/>
32 <antcall target="getDependencies"/>
jeffliuc4ea6b02006-02-28 00:40:33 +000033 <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>
jeffliu20cbe5f2005-10-05 19:06:30 +000042 <antcall target="run"/>
43 </target>
44
45 <target name="getReleng">
46 <property name="releng.tag" value="v${buildType}${timestamp}"/>
47 <cvs
david_williams0e4fcd02005-11-06 20:10:58 +000048 cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/webtools"
jeffliu20cbe5f2005-10-05 19:06:30 +000049 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>
jeffliu98217272005-10-07 21:27:07 +000060 <antcall target="getAndInstall">
61 <param name="groupId" value="eclipseTestFramework" />
62 <param name="clean" value="true" />
63 </antcall>
64 <antcall target="getAndInstall">
jeffliu20cbe5f2005-10-05 19:06:30 +000065 <param name="groupId" value="emf" />
66 </antcall>
jeffliu98217272005-10-07 21:27:07 +000067 <antcall target="getAndInstall">
jeffliu20cbe5f2005-10-05 19:06:30 +000068 <param name="groupId" value="gef" />
69 </antcall>
jeffliu98217272005-10-07 21:27:07 +000070 <antcall target="getAndInstall">
jeffliu20cbe5f2005-10-05 19:06:30 +000071 <param name="groupId" value="jem" />
72 </antcall>
jeffliu98217272005-10-07 21:27:07 +000073 <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">
jeffliu7b325052006-03-16 21:06:55 +000086 <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">
jeffliu98217272005-10-07 21:27:07 +000092 <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">
jeffliuc4ea6b02006-02-28 00:40:33 +0000101 <param name="file" value="wtp-sdk-${buildId}.zip" />
jeffliu20cbe5f2005-10-05 19:06:30 +0000102 </antcall>
jeffliu98217272005-10-07 21:27:07 +0000103 <antcall target="getAndInstallWTP">
jeffliuc4ea6b02006-02-28 00:40:33 +0000104 <param name="file" value="wtp-sdk-${buildType}-${buildId}-${timestamp}.zip" />
jeffliu20cbe5f2005-10-05 19:06:30 +0000105 </antcall>
jeffliu98217272005-10-07 21:27:07 +0000106 <antcall target="getAndInstallWTP">
jeffliuc4ea6b02006-02-28 00:40:33 +0000107 <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" />
jeffliu20cbe5f2005-10-05 19:06:30 +0000117 </antcall>
jeffliu20cbe5f2005-10-05 19:06:30 +0000118 <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
jeffliu98217272005-10-07 21:27:07 +0000140 <target name="getAndInstallWTP">
jeffliuc4ea6b02006-02-28 00:40:33 +0000141 <available file="${wtp.dir}/${file}" property="file.exists"/>
jeffliu98217272005-10-07 21:27:07 +0000142 <antcall target="getWTP"/>
jeffliu5b5e8d32006-03-07 22:20:08 +0000143 <available file="${wtp.dir}/${file}" property="file.exists"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000144 <antcall target="installWTP"/>
jeffliu98217272005-10-07 21:27:07 +0000145 </target>
146
jeffliu20cbe5f2005-10-05 19:06:30 +0000147 <target name="getWTP">
jeffliu5067e5e2006-07-10 19:21:17 +0000148 <condition property="file.url.1" value="http://download.eclipse.org/webtools/committers" else="http://download.eclipse.org/webtools/downloads">
jeffliue942a942005-11-29 17:34:57 +0000149 <isset property="build.committers"/>
150 </condition>
jeffliu5067e5e2006-07-10 19:21:17 +0000151 <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>
jeffliu20cbe5f2005-10-05 19:06:30 +0000154 <antcall target="getWTP2"/>
155 </target>
156
157 <target name="getWTP2" unless="file.exists">
jeffliu5067e5e2006-07-10 19:21:17 +0000158 <property name="file.url" value="http://download.eclipse.org/webtools/downloads/drops/${build.stream}/${buildType}-${buildId}-${timestamp}"/>
jeffliu20cbe5f2005-10-05 19:06:30 +0000159 <mkdir dir="${wtp.dir}"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000160 <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"/>
jeffliu20cbe5f2005-10-05 19:06:30 +0000165 </target>
166
jeffliu98217272005-10-07 21:27:07 +0000167 <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
jeffliu20cbe5f2005-10-05 19:06:30 +0000189 <target name="run">
jeffliuc4ea6b02006-02-28 00:40:33 +0000190 <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"/>
jeffliud82b77b2006-06-28 15:16:30 +0000200 <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"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000201 </antcall>
jeffliu925d2c92006-03-07 07:38:36 +0000202 <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"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000204
jeffliu20cbe5f2005-10-05 19:06:30 +0000205 <antcall target="runEclipseApp">
206 <param name="application" value="org.eclipse.wtp.releng.tools.component.core.Java2API"/>
jeffliu7b325052006-03-16 21:06:55 +0000207 <param name="vmargs" value="-Dsrc=${local.cache.dir}/${eclipse.file.win32-win32-x86} -DoutputDir=${apiRoot}/api-eclipse -Dexcludes=.*internal.*"/>
jeffliu20cbe5f2005-10-05 19:06:30 +0000208 </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>
jeffliuebfc3df2006-05-31 02:17:15 +0000221 <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
jeffliu20cbe5f2005-10-05 19:06:30 +0000226 <antcall target="runJavaMain">
227 <param name="classname" value="org.eclipse.wtp.releng.tools.component.violation.APIViolationScanner"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000228 <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"/>
jeffliu5ea46352005-10-07 18:22:40 +0000229 </antcall>
jeffliuebfc3df2006-05-31 02:17:15 +0000230
jeffliue942a942005-11-29 17:34:57 +0000231 <antcall target="runJavaMain">
232 <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.API2ComponentAPI"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000233 <param name="args" value="-src ${local.cache.dir}/${wtp-sdk} -api ${local.cache.dir}/${wtp-sdk} -outputDir ${apiRoot}/apiresults -html"/>
jeffliue942a942005-11-29 17:34:57 +0000234 </antcall>
jeffliuebfc3df2006-05-31 02:17:15 +0000235
jeffliu5ea46352005-10-07 18:22:40 +0000236 <antcall target="runEclipseApp">
237 <param name="application" value="org.eclipse.wtp.releng.tools.component.core.JavadocScanner"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000238 <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"/>
jeffliu20cbe5f2005-10-05 19:06:30 +0000239 </antcall>
jeffliuebfc3df2006-05-31 02:17:15 +0000240
jeffliue942a942005-11-29 17:34:57 +0000241 <antcall target="runJavaMain">
242 <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.violation.NonAPIDependencyScanner"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000243 <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"/>
jeffliue942a942005-11-29 17:34:57 +0000244 </antcall>
jeffliuebfc3df2006-05-31 02:17:15 +0000245
jeffliu98217272005-10-07 21:27:07 +0000246 <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}"/>
jeffliubbb80d22006-03-15 01:37:43 +0000253 <property name="testTarget" value="all"/>
jeffliu98217272005-10-07 21:27:07 +0000254 </ant>
jeffliuee9872f2005-10-20 01:51:18 +0000255 <antcall target="runJavaMain">
256 <param name="classname" value="org.eclipse.wtp.releng.tools.component.tptp.CodeCoverageScanner"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000257 <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"/>
jeffliue942a942005-11-29 17:34:57 +0000258 </antcall>
jeffliuc4ea6b02006-02-28 00:40:33 +0000259
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 />
jeffliue942a942005-11-29 17:34:57 +0000267 <antcall target="runJavaMain">
268 <param name="classname" value="org.eclipse.wtp.releng.tools.component.api.progress.APIProgressScanner"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000269 <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"/>
jeffliuee9872f2005-10-20 01:51:18 +0000270 </antcall>
jeffliuebfc3df2006-05-31 02:17:15 +0000271
272 <antcall target="runJavaMain">
273 <param name="classname" value="org.eclipse.wtp.releng.tools.component.tptp.CodeCoverageScanner"/>
jeffliud82b77b2006-06-28 15:16:30 +0000274 <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"/>
jeffliuebfc3df2006-05-31 02:17:15 +0000275 </antcall>
jeffliu20cbe5f2005-10-05 19:06:30 +0000276 </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}" />
jeffliu20cbe5f2005-10-05 19:06:30 +0000284 <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">
jeffliuc4ea6b02006-02-28 00:40:33 +0000295 <include name="**/org.eclipse.wtp.releng.tools.component.core*.jar"/>
296 </fileset>
297 <fileset dir="${apiRoot}/lib">
jeffliu20cbe5f2005-10-05 19:06:30 +0000298 <include name="**/org.eclipse.jdt.core*.jar"/>
299 <include name="**/org.eclipse.core.runtime*.jar"/>
jeffliue942a942005-11-29 17:34:57 +0000300 <include name="**/org.eclipse.core.resources*.jar"/>
301 <include name="**/org.eclipse.text*.jar"/>
jeffliu20cbe5f2005-10-05 19:06:30 +0000302 </fileset>
303 </classpath>
304 <jvmarg value="-Xmx256M"/>
305 <arg line="${args}"/>
306 </java>
307 </target>
308
jeffliu925d2c92006-03-07 07:38:36 +0000309 <target name="upload" if="login">
jeffliu5820f872006-05-03 14:40:36 +0000310 <mkdir dir="${build.home}/archives"/>
311 <zip destfile="${build.home}/archives/${buildType}-${buildId}-${timestamp}.zip" basedir="${build.home}/apiRoot/apiresults"/>
jeffliu5067e5e2006-07-10 19:21:17 +0000312 <condition property="upload.path.1"
313 else="${login}@download1.eclipse.org:~/downloads/webtools/downloads"
314 value="${login}@download1.eclipse.org:~/downloads/webtools/committers">
jeffliu925d2c92006-03-07 07:38:36 +0000315 <isset property="build.committers"/>
316 </condition>
jeffliu5067e5e2006-07-10 19:21:17 +0000317 <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>
jeffliu925d2c92006-03-07 07:38:36 +0000322 <exec executable="scp" dir="${build.home}">
jeffliudcf88c42006-03-31 17:19:44 +0000323 <arg line="-r ./apiRoot/apiresults ${upload.path}"/>
jeffliu925d2c92006-03-07 07:38:36 +0000324 </exec>
325 </target>
326
jeffliuc4ea6b02006-02-28 00:40:33 +0000327 <target name="clean" if="clean">
jeffliu568eaef2006-05-02 06:51:18 +0000328 <property file="${build.home}/releng.wtpbuilder/build.properties"/>
jeffliu7c7e7242006-05-01 20:30:52 +0000329 <property name="local.cache.dir" value="${build.home}/${build.local.repository}"/>
jeffliu7c7e7242006-05-01 20:30:52 +0000330 <property name="apiRoot" value="${build.home}/apiRoot"/>
jeffliu568eaef2006-05-02 06:51:18 +0000331 <property name="wtp.dir" value="${local.cache.dir}"/>
jeffliuc4ea6b02006-02-28 00:40:33 +0000332 <delete dir="${apiRoot}" failonerror="false"/>
jeffliu7c7e7242006-05-01 20:30:52 +0000333 <delete failonerror="false">
334 <fileset dir="${wtp.dir}" includes="wtp-*"/>
335 </delete>
jeffliuc4ea6b02006-02-28 00:40:33 +0000336 </target>
337
jeffliu20cbe5f2005-10-05 19:06:30 +0000338</project>