PageRenderTime 30ms CodeModel.GetById 11ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/build.xml

http://diffkit.googlecode.com/
XML | 620 lines | 518 code | 85 blank | 17 comment | 0 complexity | dcf73bfb1c98cdd8ab1278196523da24 MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!-- author: jpanico -->
  3
  4<project name="diffkit">
  5
  6	<property name="root.dir" location="." />
  7	<property name="src.dir" location="${root.dir}/src" />
  8	<property name="tst.dir" location="${root.dir}/tst" />
  9	<property name="contrib.dir" location="${root.dir}/contrib" />
 10	<property name="lib.dir" location="${root.dir}/lib" />
 11	<property name="conf.dir" location="${root.dir}/conf" />
 12	<property name="doc.dir" location="${root.dir}/doc" />
 13	<property name="web.dir" location="${root.dir}/web" />
 14	<property name="build.dir" location="${root.dir}/build" />
 15	<property name="unit.build.dir" location="${root.dir}/unit.build" />
 16	<property name="contrib.build.dir" location="${root.dir}/contrib.build" />
 17	<property name="run.dir" location="${root.dir}/run" />
 18	<property name="tstscratch.dir" location="${root.dir}/tstscratch" />
 19	<property name="dist.dir" location="${root.dir}/dist" />
 20	<property name="web-dist.dir" location="${root.dir}/web_dist" />
 21	<property name="dist.properties.file" location="${conf.dir}/dist.properties" />
 22
 23	<patternset id="build.resources">
 24		<include name="**/*.xml" />
 25		<include name="**/*.txt" />
 26      <include name="**/*.csv" />
 27      <include name="**/*.xls" />
 28      <include name="**/*.xlsx" />
 29		<include name="**/*.diff" />
 30		<include name="**/*.exception" />
 31	</patternset>
 32
 33	<patternset id="executables">
 34		<include name="**/*.class" />
 35	</patternset>
 36
 37	<fileset id="libs" dir="${lib.dir}">
 38		<include name="*.jar" />
 39		<include name="*.zip" />
 40	</fileset>
 41
 42	<path id="lib.classpath">
 43		<fileset refid="libs" />
 44	</path>
 45
 46	<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="lib.classpath" />
 47
 48	<!-- why doesn't this work ?? -->
 49	<defaultexcludes echo="false" add="**/*.__hold__" />
 50
 51	<target name="find-revision" description="Sets property 'svn.info.lastRev' to head svn revision">
 52		<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">
 53			<!-- these came from svn?ant-1.3.0.zip, the only version that will work-->
 54			<classpath>
 55				<pathelement location="${lib.dir}/svnant.jar" />
 56				<pathelement location="${lib.dir}/svnClientAdapter.jar" />
 57				<pathelement location="${lib.dir}/svnjavahl.jar" />
 58				<pathelement location="${lib.dir}/svnkit.jar" />
 59			</classpath>
 60		</taskdef>
 61
 62		<property name="svn.revision" value="HEAD" />
 63		<svn>
 64			<info target="${basedir}" />
 65		</svn>
 66		<echo>svn.revision-->${svn.info.lastRev}</echo>
 67	</target>
 68
 69	<target name="dist-properties">
 70
 71		<propertyfile file="${dist.properties.file}">
 72			<entry key="version.date" type="date" value="now" pattern="MM/dd/yyyy" />
 73		</propertyfile>
 74
 75		<property file="${dist.properties.file}" />
 76
 77		<property name="version" value="${version.major}.${version.minor}.${version.micro}" />
 78		<property name="bin-distzip" value="${ant.project.name}-${version}.zip" />
 79		<property name="src-distzip" value="${ant.project.name}-src-${version}.zip" />
 80	</target>
 81
 82	<target name="ssh-init">
 83		<fail unless="server">Set the "server" property!</fail>
 84		<property name="ssh.propfile" location="${root.dir}/../${server}.ssh.properties" />
 85		<loadproperties srcfile="${ssh.propfile}" />
 86	</target>
 87
 88	<target name="info">
 89		<echo>basedir--> ${basedir}</echo>
 90		<echo>ant.file--> ${ant.file}</echo>
 91		<echo>ant.version--> ${ant.version}</echo>
 92		<echo>ant.project.name--> ${ant.project.name}</echo>
 93		<echo>ant.java.version--> ${ant.java.version}</echo>
 94	</target>
 95
 96	<target name="build" depends="dist-properties">
 97
 98		<mkdir dir="${build.dir}" />
 99		<mkdir dir="${unit.build.dir}" />
100
101		<javac destdir="${build.dir}" classpathref="lib.classpath" verbose="off" target="1.5" source="1.5" debug="on" deprecation="off">
102			<compilerarg value="-Xlint" />
103			<src path="${src.dir}" />
104		</javac>
105
106		<!-- build the TestCases -->
107		<groovyc destdir="${build.dir}" classpathref="lib.classpath" verbose="on">
108			<src path="${tst.dir}" />
109			<include name="**/testcase/**" />
110			<include name="**/DBTestSetup*" />
111			<javac target="1.5" source="1.5" debug="on" deprecation="off" />
112		</groovyc>
113
114		<copy todir="${build.dir}">
115			<fileset dir="${src.dir}">
116				<patternset refid="build.resources" />
117			</fileset>
118
119			<fileset dir="${tst.dir}">
120				<include name="**/testcase/**" />
121				<exclude name="**/*.groovy" />
122			</fileset>
123		</copy>
124
125		<!-- build the JUnit test -->
126		<groovyc destdir="${unit.build.dir}" verbose="on">
127			<classpath>
128				<path refid="lib.classpath" />
129				<pathelement location="${build.dir}" />
130			</classpath>
131			<src path="${tst.dir}" />
132			<include name="**/tst/*" />
133			<javac target="1.5" source="1.5" debug="on" deprecation="off" />
134		</groovyc>
135
136		<copy todir="${unit.build.dir}">
137
138			<fileset dir="${tst.dir}">
139				<include name="**/*.jar" />
140				<include name="**/*.csv" />
141				<include name="**/*.diff" />
142				<include name="**/*.xml" />
143            <include name="**/*.txt" />
144            <include name="**/*.xls" />
145            <include name="**/*.xlsx" />
146			</fileset>
147		</copy>
148
149	</target>
150
151	<!-- run JUnit tests -->
152	<target name="unit" depends="build">
153		<junit printsummary="yes" haltonfailure="yes" showoutput="no">
154			<classpath>
155				<path refid="lib.classpath" />
156				<pathelement location="${build.dir}" />
157				<pathelement location="${unit.build.dir}" />
158			</classpath>
159			<batchtest fork="yes">
160				<fileset dir="${unit.build.dir}">
161					<include name="**/Test*" />
162					<!-- a '$' in the filename means it's an inner class -->
163					<exclude name="**/*$*" />
164					<exclude name="**/TestDBConnection*" />
165				</fileset>
166			</batchtest>
167		</junit>
168	</target>
169
170	<!-- run functional TestCase suite -->
171	<target name="testcases" depends="build">
172		<java classname="org.diffkit.diff.testcase.TestCaseRunner" failonerror="yes">
173			<classpath>
174				<pathelement location="${conf.dir}" />
175				<path refid="lib.classpath" />
176				<pathelement location="${build.dir}" />
177			</classpath>
178			<sysproperty key="isTest" value="true" />
179		</java>
180	</target>
181
182	<target name="bin-dist" depends="clean,build">
183
184		<property name="testcasedatajar" value="testcasedata.jar" />
185		<property name="libjar" value="${ant.project.name}-${version}.jar" />
186		<property name="appjar" value="${ant.project.name}-app.jar" />
187
188		<mkdir dir="${dist.dir}" />
189
190		<copy todir="${dist.dir}">
191			<fileset dir="${build.dir}">
192				<include name="org/diffkit/**/*.class" />
193				<exclude name="**/DKLauncher**" />
194			</fileset>
195		</copy>
196
197		<mkdir dir="${dist.dir}/testcasedata" />
198		<copy todir="${dist.dir}/testcasedata" flatten="true">
199			<fileset dir="${build.dir}/org/diffkit/diff/testcase/">
200				<patternset refid="build.resources" />
201			</fileset>
202		</copy>
203		<!-- jar up TestCase resources -->
204		<jar destfile="${dist.dir}/org/diffkit/diff/testcase/${testcasedatajar}">
205			<fileset dir="${dist.dir}/testcasedata/" />
206		</jar>
207
208		<!-- create the diffkit library as jar -->
209		<jar destfile="${dist.dir}/${libjar}" basedir="${dist.dir}" excludes="testcasedata/" />
210
211		<!-- cleanup -->
212		<delete includeemptydirs="true">
213			<fileset dir="${dist.dir}" excludes="${libjar}" />
214		</delete>
215
216		<copy todir="${dist.dir}">
217			<fileset dir="${build.dir}">
218				<include name="com/jdotsoft/**/**" />
219				<include name="org/diffkit/**/DKLauncher*" />
220			</fileset>
221		</copy>
222
223		<copy todir="${dist.dir}/lib">
224			<fileset dir="${lib.dir}">
225				<exclude name="svnant.jar" />
226				<exclude name="svnClientAdapter.jar" />
227				<exclude name="svnjavahl.jar" />
228				<exclude name="svnkit.jar" />
229			</fileset>
230		</copy>
231
232		<copy file="${conf.dir}/logback.prod.xml" tofile="${dist.dir}/conf/logback.xml" />
233		<copy file="${conf.dir}/dist.properties" todir="${dist.dir}/conf/" />
234		
235		<!-- create the diffkit standalone application that includes diffkit library 
236			and all its dependencies -->
237		<jar destfile="${dist.dir}/${appjar}" basedir="${dist.dir}">
238			<manifest>
239				<attribute name="Main-Class" value="org.diffkit.diff.conf.DKLauncher" />
240			</manifest>
241		</jar>
242
243		<!-- cleanup -->
244		<delete includeemptydirs="true">
245			<fileset dir="${dist.dir}" excludes="${appjar},${testcasedatajar}" />
246		</delete>
247
248		<copy file="${conf.dir}/logback.prod.xml" tofile="${dist.dir}/conf/logback.xml" />
249		<copy todir="${dist.dir}/conf">
250			<fileset dir="${conf.dir}">
251				<include name="*dbConnectionInfo*" />
252			</fileset>
253		</copy>
254      <mkdir dir="${dist.dir}/dropin/" />
255
256		<antcall target="doc-dist" />
257		<antcall target="eg-dist" />
258
259		<touch file="${dist.dir}/VERSION-${version}" />
260
261		<zip destfile="${dist.dir}/${bin-distzip}" basedir="${dist.dir}" />
262
263		<!-- cleanup -->
264		<delete includeemptydirs="true">
265			<fileset dir="${dist.dir}" excludes="${bin-distzip}" />
266		</delete>
267
268	</target>
269
270	<target name="src-dist" depends="clean,dist-properties">
271
272		<mkdir dir="${dist.dir}" />
273
274		<copy todir="${dist.dir}">
275			<fileset dir="${root.dir}">
276				<include name=".classpath" />
277				<include name=".project" />
278				<include name=".settings" />
279				<include name="build.xml" />
280				<include name="conf/**" />
281				<include name="doc/**" />
282				<include name="lib/**" />
283				<include name="src/**" />
284				<include name="tst/**" />
285			</fileset>
286		</copy>
287
288		<zip destfile="${dist.dir}/${src-distzip}" basedir="${dist.dir}" />
289
290		<!-- cleanup -->
291		<delete includeemptydirs="true">
292			<fileset dir="${dist.dir}" excludes="*.zip" />
293		</delete>
294	</target>
295
296	<target name="dist" depends="dist-properties,unit,testcases">
297		<antcall target="bin-dist" />
298		<move file="${dist.dir}/${bin-distzip}" tofile="${dist.dir}/${bin-distzip}.__hold__" />
299		<antcall target="src-dist" />
300		<move file="${dist.dir}/${bin-distzip}.__hold__" tofile="${dist.dir}/${bin-distzip}" />
301	</target>
302
303	<target name="doc-dist" depends="find-revision,dist-properties">
304
305		<copy todir="${dist.dir}/doc" overwrite="true">
306			<fileset dir="${doc.dir}">
307				<patternset>
308					<include name="**/*.txt" />
309					<include name="**/*.css" />
310					<include name="**/*.js" />
311				</patternset>
312			</fileset>
313			<filterset>
314				<filter token="AUTHOR" value="${author}" />
315				<filter token="VERSION" value="${version}" />
316				<filter token="BUILDDATE" value="${version.date}" />
317				<filter token="REVISION" value="${svn.info.lastRev}" />
318			</filterset>
319		</copy>
320		<copy todir="${dist.dir}/doc" overwrite="true">
321			<fileset dir="${doc.dir}">
322				<patternset>
323					<include name="**/*.png" />
324				</patternset>
325			</fileset>
326		</copy>
327      <copy file="${tst.dir}/org/diffkit/diff/testcase/TestCases.txt" todir="${dist.dir}/doc" overwrite="true"/>
328
329		<antcall target="html-doc-dist" />
330
331	</target>
332
333	<target name="html-doc-dist" depends="dist-properties,probe_for_asciidoc" if="asciidoc.found">
334
335		<exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
336			<arg line="-a linkcss" />
337			<arg line="-a theme=diffkit" />
338			<arg line="-a imagesdir=img" />
339			<arg line="-a scriptsdir=resources" />
340			<arg line="-a stylesdir=resources" />
341			<arg line="README.txt" />
342		</exec>
343		<exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
344			<arg line="-a linkcss" />
345			<arg line="-a theme=diffkit" />
346			<arg line="-a imagesdir=img" />
347			<arg line="-a scriptsdir=resources" />
348			<arg line="-a stylesdir=resources" />
349			<arg line="quickstart.txt" />
350		</exec>
351		<exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
352			<arg line="-a linkcss" />
353			<arg line="-a theme=diffkit" />
354			<arg line="-a imagesdir=img" />
355			<arg line="-a scriptsdir=resources" />
356			<arg line="-a stylesdir=resources" />
357			<arg line="-a toc" />
358			<arg line="faq.txt" />
359		</exec>
360		<exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
361			<arg line="-a linkcss" />
362			<arg line="-a theme=diffkit" />
363			<arg line="-a imagesdir=img" />
364			<arg line="-a scriptsdir=resources" />
365			<arg line="-a stylesdir=resources" />
366			<arg line="-a toc" />
367			<arg line="userguide.txt" />
368		</exec>
369		<exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
370			<arg line="-a linkcss" />
371			<arg line="-a theme=diffkit" />
372			<arg line="-a imagesdir=img" />
373			<arg line="-a scriptsdir=resources" />
374			<arg line="-a stylesdir=resources" />
375			<arg line="compatibility.txt" />
376		</exec>
377      <exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
378         <arg line="-a linkcss" />
379         <arg line="-a theme=diffkit" />
380         <arg line="-a imagesdir=img" />
381         <arg line="-a scriptsdir=resources" />
382         <arg line="-a stylesdir=resources" />
383         <arg line="-a toc" />
384         <arg line="changelog.txt" />
385      </exec>
386      <exec dir="${dist.dir}/doc" executable="asciidoc" failifexecutionfails="true" searchpath="true">
387         <arg line="-a linkcss" />
388         <arg line="-a theme=diffkit" />
389         <arg line="-a imagesdir=img" />
390         <arg line="-a scriptsdir=resources" />
391         <arg line="-a stylesdir=resources" />
392         <arg line="TestCases.txt" />
393      </exec>
394
395	</target>
396
397	<target name="web-publish" depends="web-dist,ssh-init">
398		<echo>SCP target is ${ssh.server}</echo>
399		<property name="ssh.path" value="${ssh.user}@${ssh.server}:${ssh.dir}" />
400		<scp remoteToDir="${ssh.path}" password="${ssh.password}" verbose="${ssh.verbose}">
401			<fileset dir="${web-dist.dir}" />
402		</scp>
403	</target>
404
405	<target name="web-dist" depends="find-revision,dist-properties">
406
407		<copy todir="${web-dist.dir}" overwrite="true">
408			<fileset dir="${web.dir}">
409				<patternset>
410					<include name="**/*.txt" />
411					<include name="**/*.conf" />
412				</patternset>
413			</fileset>
414			<fileset dir="${doc.dir}">
415				<patternset>
416					<include name="**/*.txt" />
417					<include name="**/*.css" />
418					<include name="**/*.js" />
419				</patternset>
420			</fileset>
421			<filterset>
422				<filter token="AUTHOR" value="${author}" />
423				<filter token="VERSION" value="${version}" />
424				<filter token="BUILDDATE" value="${version.date}" />
425				<filter token="REVISION" value="${svn.info.lastRev}" />
426			</filterset>
427		</copy>
428		<copy todir="${web-dist.dir}" overwrite="true">
429			<fileset dir="${doc.dir}">
430				<patternset>
431					<include name="**/*.png" />
432				</patternset>
433			</fileset>
434		</copy>
435
436		<antcall target="html-web-dist" />
437
438		<delete>
439			<fileset dir="${web-dist.dir}">
440				<include name="*.txt" />
441				<include name="*.conf" />
442			</fileset>
443		</delete>
444
445	</target>
446
447	<target name="html-web-dist" depends="dist-properties,probe_for_asciidoc" if="asciidoc.found">
448
449		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
450			<arg line="--conf-file=web_template.conf" />
451			<arg line="-a linkcss" />
452			<arg line="-a theme=diffkit" />
453			<arg line="-a imagesdir=img" />
454			<arg line="-a scriptsdir=resources" />
455			<arg line="-a stylesdir=resources" />
456			<arg line="-a index-only" />
457			<arg line="index.txt" />
458		</exec>
459
460		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
461			<arg line="--conf-file=web_template.conf" />
462			<arg line="-a linkcss" />
463			<arg line="-a theme=diffkit" />
464			<arg line="-a imagesdir=img" />
465			<arg line="-a scriptsdir=resources" />
466			<arg line="-a stylesdir=resources" />
467			<arg line="README.txt" />
468		</exec>
469
470		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
471			<arg line="--conf-file=web_template.conf" />
472			<arg line="-a linkcss" />
473			<arg line="-a theme=diffkit" />
474			<arg line="-a imagesdir=img" />
475			<arg line="-a scriptsdir=resources" />
476			<arg line="-a stylesdir=resources" />
477			<arg line="quickstart.txt" />
478		</exec>
479
480		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
481			<arg line="--conf-file=web_template.conf" />
482			<arg line="-a linkcss" />
483			<arg line="-a theme=diffkit" />
484			<arg line="-a imagesdir=img" />
485			<arg line="-a scriptsdir=resources" />
486			<arg line="-a stylesdir=resources" />
487			<arg line="-a toc" />
488			<arg line="userguide.txt" />
489		</exec>
490
491		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
492			<arg line="--conf-file=web_template.conf" />
493			<arg line="-a linkcss" />
494			<arg line="-a theme=diffkit" />
495			<arg line="-a imagesdir=img" />
496			<arg line="-a scriptsdir=resources" />
497			<arg line="-a stylesdir=resources" />
498			<arg line="-a toc" />
499			<arg line="faq.txt" />
500		</exec>
501
502		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
503			<arg line="--conf-file=web_template.conf" />
504			<arg line="-a linkcss" />
505			<arg line="-a theme=diffkit" />
506			<arg line="-a imagesdir=img" />
507			<arg line="-a scriptsdir=resources" />
508			<arg line="-a stylesdir=resources" />
509			<arg line="compatibility.txt" />
510		</exec>
511
512		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
513			<arg line="--conf-file=web_template.conf" />
514			<arg line="-a linkcss" />
515			<arg line="-a theme=diffkit" />
516			<arg line="-a imagesdir=img" />
517			<arg line="-a scriptsdir=resources" />
518			<arg line="-a stylesdir=resources" />
519			<arg line="support.txt" />
520		</exec>
521
522		<exec dir="${web-dist.dir}" executable="asciidoc" failifexecutionfails="true" searchpath="true">
523			<arg line="--conf-file=web_template.conf" />
524			<arg line="-a linkcss" />
525			<arg line="-a theme=diffkit" />
526			<arg line="-a imagesdir=img" />
527			<arg line="-a scriptsdir=resources" />
528			<arg line="-a stylesdir=resources" />
529			<arg line="-a toc" />
530			<arg line="changelog.txt" />
531		</exec>
532
533	</target>
534
535	<target name="eg-dist" depends="dist-properties">
536
537      <copy todir="${dist.dir}/eg" overwrite="true">
538         <fileset dir="${tst.dir}">
539            <include name="**/testcase/*.h2.db" />
540         </fileset>
541         <flattenmapper />
542      </copy>
543      <copy todir="${dist.dir}/eg" overwrite="true">
544         <fileset dir="${tst.dir}/org/diffkit/diff/testcase">
545            <patternset refid="build.resources" />
546         </fileset>
547         <flattenmapper />
548      </copy>
549		<copy todir="${dist.dir}/eg" overwrite="true">
550			<fileset dir="${tst.dir}/org/diffkit/diff/testcase">
551            <patternset>
552               <include name="**/*.xml" />
553            </patternset>
554			</fileset>
555			<filterset>
556				<filter token="TargetDatabase" value="${demodb.name}" />
557				<filter token="Test18LHSTargetDatabase" value="file:./test18_lhs_demo" />
558				<filter token="Test18RHSTargetDatabase" value="file:./test18_rhs_demo" />
559			</filterset>
560			<flattenmapper />
561		</copy>
562
563	</target>
564
565	<target name="build-contrib-jar" depends="build">
566		<mkdir dir="${contrib.build.dir}" />
567		<mkdir dir="${dist.dir}" />
568
569		<javac destdir="${contrib.build.dir}" verbose="off" target="1.5" source="1.5" debug="on" deprecation="off">
570			<compilerarg value="-Xlint" />
571			<classpath>
572				<path refid="lib.classpath" />
573				<pathelement location="${build.dir}" />
574			</classpath>
575			<src path="${contrib.dir}" />
576		</javac>
577
578		<jar destfile="${dist.dir}/diffkit-contrib.jar" basedir="${contrib.build.dir}" />
579
580	</target>
581
582	<target name="probe_for_asciidoc">
583		<property environment="env" />
584		<echo>env.PATH--> ${env.PATH}</echo>
585		<condition property="asciidoc.found">
586			<or>
587				<available file="asciidoc" filepath="${env.PATH}" />
588				<available file="asciidoc.exe" filepath="${env.Path}" />
589			</or>
590		</condition>
591		<echo>asciidoc.found = ${asciidoc.found}</echo>
592	</target>
593
594	<target name="clean">
595		<delete dir="${build.dir}" includeEmptyDirs="true" failonerror="false" />
596		<delete dir="${unit.build.dir}" includeEmptyDirs="true" failonerror="false" />
597		<delete dir="${contrib.build.dir}" includeEmptyDirs="true" failonerror="false" />
598		<delete dir="${run.dir}" includeEmptyDirs="true" failonerror="false" />
599		<delete dir="${dist.dir}" includeEmptyDirs="true" failonerror="false">
600			<exclude name="*.__hold__" />
601		</delete>
602		<delete dir="${web-dist.dir}" includeEmptyDirs="true" failonerror="false" />
603		<!-- clean up scratch files created by Unit tests and TCR -->
604		<delete>
605			<fileset dir="${root.dir}">
606				<include name="*.diff" />
607				<include name="*.txt" />
608				<include name="*.tst" />
609				<include name="*.class" />
610			</fileset>
611		</delete>
612		<delete includeemptydirs="true">
613			<fileset dir="${root.dir}" includes="tcr*/**" />
614		</delete>
615		<delete includeemptydirs="true" failonerror="false">
616			<fileset dir="${tstscratch.dir}" />
617		</delete>
618	</target>
619
620</project>