You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 24 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <?xml version="1.0"?>
  2. <!--
  3. =======================================================================
  4. Ant own build file
  5. =======================================================================
  6. -->
  7. <project name="Ant" default="main" basedir=".">
  8. <!-- Give user a chance to override without editing this file
  9. (and without typing -D each time it compiles it) -->
  10. <property file=".ant.properties" />
  11. <property file="${user.home}/.ant.properties" />
  12. <property name="Name" value="Ant"/>
  13. <property name="name" value="ant"/>
  14. <property name="version" value="1.4alpha"/>
  15. <property name="debug" value="false" />
  16. <property name="deprecation" value="false" />
  17. <property name="optimize" value="true" />
  18. <property name="junit.fork" value="false" />
  19. <!--
  20. ===================================================================
  21. Set the properties related to the source tree
  22. ===================================================================
  23. -->
  24. <property name="src.dir" value="src"/>
  25. <property name="java.dir" value="${src.dir}/main"/>
  26. <property name="script.dir" value="${src.dir}/script"/>
  27. <property name="lib.dir" value="lib"/>
  28. <property name="docs.dir" value="docs"/>
  29. <property name="tests.dir" value="src/testcases"/>
  30. <property name="tests.etc.dir" value="src/etc/testcases"/>
  31. <property name="ant.package" value="org/apache/tools/ant"/>
  32. <property name="optional.package" value="${ant.package}/taskdefs/optional"/>
  33. <property name="manifest" value="src/etc/manifest"/>
  34. <!--
  35. ===================================================================
  36. Set the properties for the build area
  37. ===================================================================
  38. -->
  39. <property name="build.dir" value="build"/>
  40. <property name="bootstrap.dir" value="bootstrap"/>
  41. <property name="build.classes" value="${build.dir}/classes"/>
  42. <property name="build.lib" value="${build.dir}/lib"/>
  43. <property name="build.javadocs" value="${build.dir}/javadocs"/>
  44. <property name="build.tests" value="${build.dir}/testcases"/>
  45. <path id="classpath">
  46. </path>
  47. <path id="tests-classpath">
  48. <pathelement location="${build.classes}" />
  49. <pathelement location="${build.tests}" />
  50. <path refid="classpath" />
  51. </path>
  52. <!--
  53. ===================================================================
  54. Set up properties for the distribution area
  55. ===================================================================
  56. -->
  57. <property name="dist.name" value="jakarta-${name}-${version}"/>
  58. <property name="dist.base" value="distribution"/>
  59. <property name="defaultdist.dir" value="dist"/>
  60. <target name="setup-distproperties">
  61. <property name="dist.dir" value="${defaultdist.dir}"/>
  62. <property name="dist.bin" value="${dist.dir}/bin"/>
  63. <property name="dist.lib" value="${dist.dir}/lib"/>
  64. <property name="dist.docs" value="${dist.dir}/docs"/>
  65. <property name="dist.javadocs" value="${dist.dir}/docs/api"/>
  66. <property name="src.dist.dir" value="dist-src"/>
  67. <property name="src.dist.src" value="${src.dist.dir}/src"/>
  68. <property name="src.dist.docs" value="${src.dist.dir}/docs"/>
  69. <property name="src.dist.lib" value="${src.dist.dir}/lib"/>
  70. </target>
  71. <!--
  72. ===================================================================
  73. Check to see what optional dependencies are available
  74. ===================================================================
  75. -->
  76. <target name="check_for_optional_packages">
  77. <available property="jdk1.2+" classname="java.lang.ThreadLocal" />
  78. <available property="jdk1.3+" classname="java.lang.StrictMath" />
  79. <available property="bsf.present"
  80. classname="com.ibm.bsf.BSFManager"
  81. classpathref="classpath" />
  82. <available property="netrexx.present"
  83. classname="netrexx.lang.Rexx"
  84. classpathref="classpath" />
  85. <available property="xslp.present"
  86. classname="com.kvisco.xsl.XSLProcessor"
  87. classpathref="classpath" />
  88. <available property="xalan.present"
  89. classname="org.apache.xalan.xslt.XSLTProcessorFactory"
  90. classpathref="classpath" />
  91. <available property="ejb.ejbc.present"
  92. classname="weblogic.ejbc"
  93. classpathref="classpath" />
  94. <available property="ejb.DDCreator.present"
  95. classname="weblogic.ejb.utils.DDCreator"
  96. classpathref="classpath" />
  97. <available property="ejb.wls.present"
  98. classname="weblogic.Server"
  99. classpathref="classpath" />
  100. <available property="junit.present"
  101. classname="junit.framework.TestCase"
  102. classpathref="classpath" />
  103. <available property="netcomp.present"
  104. classname="com.oroinc.net.ftp.FTPClient"
  105. classpathref="classpath" />
  106. <available property="starteam.present"
  107. classname="com.starbase.util.Platform"
  108. classpathref="classpath" />
  109. <available property="antlr.present"
  110. classname="antlr.Tool"
  111. classpathref="classpath"/>
  112. <available property="vaj.present"
  113. classname="com.ibm.ivj.util.base.Workspace"
  114. classpathref="classpath"/>
  115. <available property="stylebook.present"
  116. classname="org.apache.stylebook.Engine"
  117. classpathref="classpath"/>
  118. <available property="jakarta.regexp.present"
  119. classname="org.apache.regexp.RE"
  120. classpathref="classpath"/>
  121. <available property="jakarta.oro.present"
  122. classname="org.apache.oro.text.regex.Perl5Matcher"
  123. classpathref="classpath" />
  124. <available property="jmf.present"
  125. classname="javax.sound.sampled.Clip"
  126. classpathref="classpath"/>
  127. <available property="icontract.present"
  128. classname="com.reliablesystems.iContract.IContracted"
  129. classpathref="classpath"/>
  130. </target>
  131. <!--
  132. ===================================================================
  133. Prepare the build
  134. ===================================================================
  135. -->
  136. <target name="prepare">
  137. <tstamp />
  138. </target>
  139. <!--
  140. ===================================================================
  141. Build the code
  142. ===================================================================
  143. -->
  144. <target name="build" depends="prepare, check_for_optional_packages">
  145. <mkdir dir="${build.dir}"/>
  146. <mkdir dir="${build.classes}"/>
  147. <mkdir dir="${build.lib}"/>
  148. <javac srcdir="${java.dir}"
  149. destdir="${build.classes}"
  150. debug="${debug}"
  151. deprecation="${deprecation}"
  152. optimize="${optimize}" >
  153. <classpath refid="classpath" />
  154. <exclude name="${ant.package}/util/regexp/JakartaRegexpMatcher.java"
  155. unless="jakarta.regexp.present" />
  156. <exclude name="${ant.package}/util/regexp/JakartaOroMatcher.java"
  157. unless="jakarta.oro.present" />
  158. <exclude name="${optional.package}/IContract.java" unless="icontract.present" />
  159. <exclude name="${optional.package}/Script.java" unless="bsf.present" />
  160. <exclude name="${optional.package}/StyleBook.java" unless="stylebook.present" />
  161. <exclude name="${optional.package}/NetRexxC.java" unless="netrexx.present" />
  162. <exclude name="${optional.package}/XslpLiaison.java" unless="xslp.present" />
  163. <exclude name="${optional.package}/XalanLiaison.java" unless="xalan.present" />
  164. <exclude name="${optional.package}/ejb/Ejbc*.java" unless="ejb.ejbc.present" />
  165. <exclude name="${optional.package}/ejb/DDCreator*.java" unless="ejb.DDCreator.present" />
  166. <exclude name="${optional.package}/ejb/WLRun.java" unless="ejb.wls.present" />
  167. <exclude name="${optional.package}/ejb/WLStop.java" unless="ejb.wls.present" />
  168. <exclude name="${optional.package}/ejb/EjbJar.java" unless="jdk1.2+" />
  169. <exclude name="${optional.package}/ejb/*DeploymentTool.java" unless="jdk1.2+" />
  170. <exclude name="${optional.package}/Javah.java" unless="jdk1.2+" />
  171. <exclude name="${optional.package}/junit/*" unless="junit.present" />
  172. <exclude name="${optional.package}/net/*.java" unless="netcomp.present" />
  173. <exclude name="${optional.package}/scm/AntStarTeam*.java" unless="starteam.present" />
  174. <exclude name="${optional.package}/ANTLR.java" unless="antlr.present" />
  175. <exclude name="${optional.package}/ide/VAJ*.java" unless="vaj.present" />
  176. <exclude name="${optional.package}/perforce/*.java" unless="jakarta.oro.present" />
  177. <exclude name="${optional.package}/sound/*.java" unless="jmf.present" />
  178. <exclude name="${optional.package}/junit/XMLResultAggregator.java"
  179. unless="xalan.present" />
  180. <exclude name="${optional.package}/junit/AggregateTransformer.java"
  181. unless="xalan.present" />
  182. </javac>
  183. <copy todir="${build.classes}">
  184. <fileset dir="${java.dir}">
  185. <include name="**/*.properties" />
  186. </fileset>
  187. </copy>
  188. <filter token="VERSION" value="${version}" />
  189. <filter token="DATE" value="${TODAY}" />
  190. <filter token="TIME" value="${TSTAMP}" />
  191. <copy todir="${build.classes}"
  192. overwrite="true"
  193. filtering="on">
  194. <fileset dir="${java.dir}">
  195. <include name="**/version.txt" />
  196. <include name="**/defaultManifest.mf" />
  197. </fileset>
  198. </copy>
  199. <copy todir="${build.classes}/${optional.package}/junit">
  200. <fileset dir="${java.dir}/${optional.package}/junit">
  201. <include name="html/**" />
  202. <include name="xsl/**" />
  203. </fileset>
  204. </copy>
  205. </target>
  206. <!--
  207. ===================================================================
  208. Create the ant jars: ant.jar and optional.jar
  209. ===================================================================
  210. -->
  211. <target name="jars" depends="build">
  212. <jar jarfile="${build.lib}/${name}.jar"
  213. basedir="${build.classes}"
  214. manifest="${manifest}">
  215. <exclude name="org/apache/tools/ant/taskdefs/optional/**" />
  216. </jar>
  217. <jar jarfile="${build.lib}/optional.jar"
  218. basedir="${build.classes}"
  219. manifest="${manifest}">
  220. <include name="org/apache/tools/ant/taskdefs/optional/**" />
  221. </jar>
  222. </target>
  223. <!--
  224. ===================================================================
  225. Create the essential distribution that can run ant
  226. ===================================================================
  227. -->
  228. <target name="dist-lite" depends="jars, setup-distproperties">
  229. <mkdir dir="${dist.dir}"/>
  230. <mkdir dir="${dist.bin}"/>
  231. <mkdir dir="${dist.lib}"/>
  232. <copy todir="${dist.lib}">
  233. <fileset dir="${build.lib}"/>
  234. </copy>
  235. <copy todir="${dist.bin}">
  236. <fileset dir="${script.dir}/" />
  237. </copy>
  238. <chmod dir="${dist.dir}" perm="go-rwx" />
  239. <chmod perm="u+x">
  240. <fileset dir="${dist.bin}">
  241. <include name="**/ant" />
  242. <include name="**/antRun" />
  243. </fileset>
  244. </chmod>
  245. <fixcrlf srcdir="${dist.bin}" cr="add" includes="*.bat" />
  246. <fixcrlf srcdir="${dist.bin}" cr="remove" includes="*.sh" />
  247. <fixcrlf srcdir="${dist.bin}" cr="remove" includes="ant" />
  248. </target>
  249. <!--
  250. ===================================================================
  251. Create the complete distribution
  252. ===================================================================
  253. -->
  254. <target name="dist">
  255. <antcall target="internal_dist">
  256. <param name="dist.dir" value="${dist.name}" />
  257. </antcall>
  258. </target>
  259. <target name="internal_dist" depends="dist-lite,javadocs">
  260. <mkdir dir="${dist.docs}"/>
  261. <mkdir dir="${dist.javadocs}"/>
  262. <copy todir="${dist.lib}">
  263. <fileset dir="${lib.dir}">
  264. <include name="*.jar" />
  265. <include name="*.zip" />
  266. </fileset>
  267. </copy>
  268. <copy todir="${dist.lib}" file="${lib.dir}/optional/README"/>
  269. <copy todir="${dist.docs}"
  270. filtering="on">
  271. <fileset dir="${docs.dir}"/>
  272. </copy>
  273. <copy todir="${dist.javadocs}">
  274. <fileset dir="${build.javadocs}"/>
  275. </copy>
  276. <copy todir="${dist.dir}">
  277. <fileset dir=".">
  278. <include name="README"/>
  279. <include name="LICENSE"/>
  280. <include name="TODO"/>
  281. <include name="WHATSNEW"/>
  282. </fileset>
  283. </copy>
  284. <chmod dir="${dist.dir}" perm="go-rwx" />
  285. </target>
  286. <!--
  287. ===================================================================
  288. Target to create bootstrap build
  289. ===================================================================
  290. -->
  291. <target name="bootstrap">
  292. <antcall target="dist-lite">
  293. <param name="dist.dir" value="${bootstrap.dir}" />
  294. </antcall>
  295. </target>
  296. <!--
  297. ===================================================================
  298. Create the source distribution
  299. ===================================================================
  300. -->
  301. <target name="src-dist" depends="setup-distproperties">
  302. <mkdir dir="${src.dist.dir}" />
  303. <copy todir="${src.dist.lib}">
  304. <fileset dir="${lib.dir}">
  305. <include name="*.jar" />
  306. <include name="*.zip" />
  307. <include name="optional/README"/>
  308. </fileset>
  309. </copy>
  310. <copy todir="${src.dist.src}">
  311. <fileset dir="${src.dir}"/>
  312. </copy>
  313. <copy todir="${src.dist.docs}">
  314. <fileset dir="${docs.dir}"/>
  315. </copy>
  316. <copy todir="${src.dist.dir}">
  317. <fileset dir=".">
  318. <include name="README"/>
  319. <include name="LICENSE"/>
  320. <include name="TODO"/>
  321. <include name="WHATSNEW"/>
  322. <include name="build.bat"/>
  323. <include name="build.sh"/>
  324. <include name="bootstrap.bat"/>
  325. <include name="bootstrap.sh"/>
  326. <include name="build.xml"/>
  327. </fileset>
  328. </copy>
  329. <fixcrlf srcdir="${src.dist.dir}" includes="*.sh" cr="remove"/>
  330. <fixcrlf srcdir="${src.dist.dir}" includes="*.bat" cr="add"/>
  331. <chmod perm="+x">
  332. <fileset dir="${src.dist.dir}">
  333. <include name="*.sh" />
  334. </fileset>
  335. </chmod>
  336. <fixcrlf srcdir="${src.dist.src}" includes="**/*.java" cr="remove"/>
  337. </target>
  338. <!--
  339. ===================================================================
  340. Create the binary distribution
  341. ===================================================================
  342. -->
  343. <target name="distribution">
  344. <mkdir dir="${dist.base}"/>
  345. <antcall target="internal_dist">
  346. <param name="dist.dir" value="${dist.name}" />
  347. </antcall>
  348. <zip zipfile="${dist.base}/${dist.name}-bin.zip"
  349. basedir="${dist.name}/.."
  350. includes="${dist.name}/**"
  351. excludes="${dist.name}/lib/optional.jar"/>
  352. <tar longfile="gnu"
  353. tarfile="${dist.base}/${dist.name}-bin.tar">
  354. <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
  355. <include name="${dist.name}/bin/ant"/>
  356. <include name="${dist.name}/bin/antRun"/>
  357. </tarfileset>
  358. <tarfileset dir="${dist.name}/.." username="ant" group="ant">
  359. <include name="${dist.name}/**"/>
  360. <exclude name="${dist.name}/bin/ant"/>
  361. <exclude name="${dist.name}/bin/antRun"/>
  362. <exclude name="${dist.name}/lib/optional.jar"/>
  363. </tarfileset>
  364. </tar>
  365. <gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  366. src="${dist.base}/${dist.name}-bin.tar"/>
  367. <delete file="${dist.base}/${dist.name}-bin.tar"/>
  368. <copy file="${dist.name}/lib/optional.jar" tofile="${dist.base}/${dist.name}-optional.jar"/>
  369. <delete dir="${dist.name}" />
  370. <antcall target="src-dist">
  371. <param name="src.dist.dir" value="${dist.name}" />
  372. </antcall>
  373. <zip zipfile="${dist.base}/${dist.name}-src.zip"
  374. basedir="${dist.name}/.."
  375. includes="${dist.name}/**"/>
  376. <tar longfile="gnu"
  377. tarfile="${dist.base}/${dist.name}-src.tar" >
  378. <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
  379. <include name="${dist.name}/bootstrap.sh"/>
  380. <include name="${dist.name}/build.sh"/>
  381. </tarfileset>
  382. <tarfileset dir="${dist.name}/.." username="ant" group="ant">
  383. <include name="${dist.name}/**"/>
  384. <exclude name="${dist.name}/bootstrap.sh"/>
  385. <exclude name="${dist.name}/build.sh"/>
  386. </tarfileset>
  387. </tar>
  388. <gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
  389. src="${dist.base}/${dist.name}-src.tar"/>
  390. <delete file="${dist.base}/${dist.name}-src.tar"/>
  391. <delete dir="${dist.name}" />
  392. </target>
  393. <!--
  394. ===================================================================
  395. Cleans up build and distribution directories
  396. ===================================================================
  397. -->
  398. <target name="clean">
  399. <delete dir="${build.dir}" />
  400. <delete dir="${dist.base}" />
  401. <delete dir="${defaultdist.dir}" />
  402. <delete>
  403. <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  404. </delete>
  405. </target>
  406. <!--
  407. ===================================================================
  408. Cleans everything
  409. ===================================================================
  410. -->
  411. <target name="allclean" depends="clean">
  412. <delete file="${bootstrap.dir}/bin/antRun" />
  413. <delete file="${bootstrap.dir}/bin/antRun.bat" />
  414. </target>
  415. <!--
  416. ===================================================================
  417. Installs ant
  418. ===================================================================
  419. -->
  420. <target name="install" if="ant.install">
  421. <antcall target="dist">
  422. <param name="dist.dir" value="${ant.install}" />
  423. </antcall>
  424. </target>
  425. <target name="install-lite" if="ant.install">
  426. <antcall target="dist-lite">
  427. <param name="dist.dir" value="${ant.install}" />
  428. </antcall>
  429. </target>
  430. <!--
  431. ===================================================================
  432. Creates the API documentation
  433. ===================================================================
  434. -->
  435. <target name="javadoc_check">
  436. <uptodate property="javadoc.notrequired" targetfile="${build.javadocs}/packages.html" >
  437. <srcfiles dir= "${java.dir}" includes="**/*.java"/>
  438. </uptodate>
  439. </target>
  440. <target name="javadocs" depends="prepare, javadoc_check"
  441. unless="javadoc.notrequired"
  442. description="Creates the API documentation">
  443. <mkdir dir="${build.javadocs}"/>
  444. <javadoc packagenames="org.apache.*"
  445. sourcepath="${java.dir}"
  446. destdir="${build.javadocs}"
  447. author="true"
  448. version="true"
  449. windowtitle="${Name} API"
  450. doctitle="${Name}"
  451. bottom="Copyright &#169; 2000 Apache Software Foundation. All Rights Reserved.">
  452. <group title="Ant Core" packages="org.apache.tools.ant*" />
  453. <group title="Core Tasks" packages="org.apache.tools.ant.taskdefs*" />
  454. <group title="Optional Tasks" packages="org.apache.tools.ant.taskdefs.optional*" />
  455. </javadoc>
  456. </target>
  457. <!--
  458. ===================================================================
  459. Compile testcases
  460. ===================================================================
  461. -->
  462. <target name="compile-tests" depends="build" if="junit.present">
  463. <mkdir dir="${build.tests}"/>
  464. <javac srcdir="${tests.dir}"
  465. destdir="${build.tests}"
  466. debug="${debug}"
  467. deprecation="${deprecation}" >
  468. <classpath refid="tests-classpath" />
  469. <exclude name="org/apache/tools/ant/taskdefs/optional/ANTLRTest.java"
  470. unless="antlr.present" />
  471. <exclude name="org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java"
  472. unless="jakarta.regexp.present" />
  473. <exclude name="org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java"
  474. unless="jakarta.oro.present" />
  475. </javac>
  476. </target>
  477. <target name="dump-info">
  478. <echo message="java.vm.info=${java.vm.info}" />
  479. <echo message="java.vm.name=${java.vm.name}" />
  480. <echo message="java.vm.vendor=${java.vm.vendor}" />
  481. <echo message="java.vm.version=${java.vm.version}" />
  482. <echo message="os.arch=${os.arch}" />
  483. <echo message="os.name=${os.name}" />
  484. <echo message="os.version=${os.version}" />
  485. <echo message="file.encoding=${file.encoding}" />
  486. <echo message="user.language=${user.language}" />
  487. </target>
  488. <!--
  489. ===================================================================
  490. Run testcase
  491. ===================================================================
  492. -->
  493. <target name="test" depends="run-tests"/>
  494. <target name="run-tests" depends="dump-info,compile-tests" if="junit.present">
  495. <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
  496. <jvmarg value="-classic"/>
  497. <classpath refid="tests-classpath"/>
  498. <sysproperty key="build.tests" value="${build.tests}"/>
  499. <formatter type="plain" usefile="false" />
  500. <batchtest>
  501. <fileset dir="${tests.dir}">
  502. <include name="**/*Test*" />
  503. <!-- abstract class, not a testcase -->
  504. <exclude name="org/apache/tools/ant/taskdefs/TaskdefsTest.java" />
  505. <exclude name="org/apache/tools/ant/util/regexp/RegexpMatcherTest.java" />
  506. <!-- these tests need to be localised before being ran???? -->
  507. <exclude name="org/apache/tools/ant/taskdefs/optional/PvcsTest.java" />
  508. <!-- these depend on order -->
  509. <exclude name="org/apache/tools/ant/taskdefs/GUnzipTest.java" />
  510. <exclude name="org/apache/tools/ant/taskdefs/GzipTest.java" />
  511. <!-- only run this test if ANTLR is installed -->
  512. <exclude name="org/apache/tools/ant/taskdefs/optional/ANTLRTest.java"
  513. unless="antlr.present" />
  514. <exclude name="org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java"
  515. unless="jakarta.regexp.present" />
  516. <exclude name="org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java"
  517. unless="jakarta.oro.present" />
  518. </fileset>
  519. </batchtest>
  520. <test name="org.apache.tools.ant.taskdefs.GzipTest" />
  521. <test name="org.apache.tools.ant.taskdefs.GUnzipTest" />
  522. </junit>
  523. <!-- clean up again -->
  524. <delete dir="${tests.etc.dir}/taskdefs/optional/antlr/antlr.tmp" />
  525. <delete dir="${tests.etc.dir}/taskdefs/taskdefs.tmp" />
  526. <delete dir="${tests.etc.dir}/taskdefs.tmp" />
  527. <delete file="${tests.etc.dir}/taskdefs/tmp.jar" />
  528. <delete dir="${tests.etc.dir}/types/copytest" />
  529. </target>
  530. <target name="run-single-test" if="testcase" depends="compile-tests">
  531. <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
  532. <jvmarg value="-classic"/>
  533. <sysproperty key="build.tests" value="${build.tests}"/>
  534. <classpath refid="tests-classpath"/>
  535. <formatter type="plain" usefile="false" />
  536. <test name="${testcase}" />
  537. </junit>
  538. </target>
  539. <!--
  540. ===================================================================
  541. Main target - runs dist-lite by default
  542. ===================================================================
  543. -->
  544. <target name="main">
  545. <antcall target="dist-lite"/>
  546. </target>
  547. </project>