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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  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. <fixcrlf srcdir="${dist.bin}" cr="remove" includes="antRun" />
  249. </target>
  250. <!--
  251. ===================================================================
  252. Create the complete distribution
  253. ===================================================================
  254. -->
  255. <target name="dist">
  256. <antcall target="internal_dist">
  257. <param name="dist.dir" value="${dist.name}" />
  258. </antcall>
  259. </target>
  260. <target name="internal_dist" depends="dist-lite,javadocs">
  261. <mkdir dir="${dist.docs}"/>
  262. <mkdir dir="${dist.javadocs}"/>
  263. <copy todir="${dist.lib}">
  264. <fileset dir="${lib.dir}">
  265. <include name="*.jar" />
  266. <include name="*.zip" />
  267. </fileset>
  268. </copy>
  269. <copy todir="${dist.lib}" file="${lib.dir}/optional/README"/>
  270. <copy todir="${dist.docs}"
  271. filtering="on">
  272. <fileset dir="${docs.dir}"/>
  273. </copy>
  274. <copy todir="${dist.javadocs}">
  275. <fileset dir="${build.javadocs}"/>
  276. </copy>
  277. <copy todir="${dist.dir}">
  278. <fileset dir=".">
  279. <include name="README"/>
  280. <include name="LICENSE"/>
  281. <include name="TODO"/>
  282. <include name="WHATSNEW"/>
  283. </fileset>
  284. </copy>
  285. <chmod dir="${dist.dir}" perm="go-rwx" />
  286. </target>
  287. <!--
  288. ===================================================================
  289. Target to create bootstrap build
  290. ===================================================================
  291. -->
  292. <target name="bootstrap">
  293. <antcall target="dist-lite">
  294. <param name="dist.dir" value="${bootstrap.dir}" />
  295. </antcall>
  296. </target>
  297. <!--
  298. ===================================================================
  299. Create the source distribution
  300. ===================================================================
  301. -->
  302. <target name="src-dist" depends="setup-distproperties">
  303. <mkdir dir="${src.dist.dir}" />
  304. <copy todir="${src.dist.lib}">
  305. <fileset dir="${lib.dir}">
  306. <include name="*.jar" />
  307. <include name="*.zip" />
  308. <include name="optional/README"/>
  309. </fileset>
  310. </copy>
  311. <copy todir="${src.dist.src}">
  312. <fileset dir="${src.dir}"/>
  313. </copy>
  314. <copy todir="${src.dist.docs}">
  315. <fileset dir="${docs.dir}"/>
  316. </copy>
  317. <copy todir="${src.dist.dir}">
  318. <fileset dir=".">
  319. <include name="README"/>
  320. <include name="LICENSE"/>
  321. <include name="TODO"/>
  322. <include name="WHATSNEW"/>
  323. <include name="build.bat"/>
  324. <include name="build.sh"/>
  325. <include name="bootstrap.bat"/>
  326. <include name="bootstrap.sh"/>
  327. <include name="build.xml"/>
  328. </fileset>
  329. </copy>
  330. <fixcrlf srcdir="${src.dist.dir}" includes="*.sh" cr="remove"/>
  331. <fixcrlf srcdir="${src.dist.dir}" includes="ant" cr="remove"/>
  332. <fixcrlf srcdir="${src.dist.dir}" includes="antRun" cr="remove"/>
  333. <fixcrlf srcdir="${src.dist.dir}" includes="*.bat" cr="add"/>
  334. <chmod perm="+x">
  335. <fileset dir="${src.dist.dir}">
  336. <include name="*.sh" />
  337. </fileset>
  338. </chmod>
  339. <fixcrlf srcdir="${src.dist.src}" includes="**/*.java" cr="remove"/>
  340. </target>
  341. <!--
  342. ===================================================================
  343. Create the binary distribution
  344. ===================================================================
  345. -->
  346. <target name="distribution">
  347. <mkdir dir="${dist.base}"/>
  348. <antcall target="internal_dist">
  349. <param name="dist.dir" value="${dist.name}" />
  350. </antcall>
  351. <zip zipfile="${dist.base}/${dist.name}-bin.zip"
  352. basedir="${dist.name}/.."
  353. includes="${dist.name}/**"
  354. excludes="${dist.name}/lib/optional.jar"/>
  355. <tar longfile="gnu"
  356. tarfile="${dist.base}/${dist.name}-bin.tar">
  357. <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
  358. <include name="${dist.name}/bin/ant"/>
  359. <include name="${dist.name}/bin/antRun"/>
  360. </tarfileset>
  361. <tarfileset dir="${dist.name}/.." username="ant" group="ant">
  362. <include name="${dist.name}/**"/>
  363. <exclude name="${dist.name}/bin/ant"/>
  364. <exclude name="${dist.name}/bin/antRun"/>
  365. <exclude name="${dist.name}/lib/optional.jar"/>
  366. </tarfileset>
  367. </tar>
  368. <gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
  369. src="${dist.base}/${dist.name}-bin.tar"/>
  370. <delete file="${dist.base}/${dist.name}-bin.tar"/>
  371. <copy file="${dist.name}/lib/optional.jar" tofile="${dist.base}/${dist.name}-optional.jar"/>
  372. <delete dir="${dist.name}" />
  373. <antcall target="src-dist">
  374. <param name="src.dist.dir" value="${dist.name}" />
  375. </antcall>
  376. <zip zipfile="${dist.base}/${dist.name}-src.zip"
  377. basedir="${dist.name}/.."
  378. includes="${dist.name}/**"/>
  379. <tar longfile="gnu"
  380. tarfile="${dist.base}/${dist.name}-src.tar" >
  381. <tarfileset dir="${dist.name}/.." mode="755" username="ant" group="ant">
  382. <include name="${dist.name}/bootstrap.sh"/>
  383. <include name="${dist.name}/build.sh"/>
  384. </tarfileset>
  385. <tarfileset dir="${dist.name}/.." username="ant" group="ant">
  386. <include name="${dist.name}/**"/>
  387. <exclude name="${dist.name}/bootstrap.sh"/>
  388. <exclude name="${dist.name}/build.sh"/>
  389. </tarfileset>
  390. </tar>
  391. <gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
  392. src="${dist.base}/${dist.name}-src.tar"/>
  393. <delete file="${dist.base}/${dist.name}-src.tar"/>
  394. <delete dir="${dist.name}" />
  395. </target>
  396. <!--
  397. ===================================================================
  398. Cleans up build and distribution directories
  399. ===================================================================
  400. -->
  401. <target name="clean">
  402. <delete dir="${build.dir}" />
  403. <delete dir="${dist.base}" />
  404. <delete dir="${defaultdist.dir}" />
  405. <delete>
  406. <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  407. </delete>
  408. </target>
  409. <!--
  410. ===================================================================
  411. Cleans everything
  412. ===================================================================
  413. -->
  414. <target name="allclean" depends="clean">
  415. <delete file="${bootstrap.dir}/bin/antRun" />
  416. <delete file="${bootstrap.dir}/bin/antRun.bat" />
  417. </target>
  418. <!--
  419. ===================================================================
  420. Installs ant
  421. ===================================================================
  422. -->
  423. <target name="install" if="ant.install">
  424. <antcall target="dist">
  425. <param name="dist.dir" value="${ant.install}" />
  426. </antcall>
  427. </target>
  428. <target name="install-lite" if="ant.install">
  429. <antcall target="dist-lite">
  430. <param name="dist.dir" value="${ant.install}" />
  431. </antcall>
  432. </target>
  433. <!--
  434. ===================================================================
  435. Creates the API documentation
  436. ===================================================================
  437. -->
  438. <target name="javadoc_check">
  439. <uptodate property="javadoc.notrequired" targetfile="${build.javadocs}/packages.html" >
  440. <srcfiles dir= "${java.dir}" includes="**/*.java"/>
  441. </uptodate>
  442. </target>
  443. <target name="javadocs" depends="prepare, javadoc_check"
  444. unless="javadoc.notrequired"
  445. description="Creates the API documentation">
  446. <mkdir dir="${build.javadocs}"/>
  447. <javadoc packagenames="org.apache.*"
  448. sourcepath="${java.dir}"
  449. destdir="${build.javadocs}"
  450. author="true"
  451. version="true"
  452. windowtitle="${Name} API"
  453. doctitle="${Name}"
  454. bottom="Copyright &#169; 2000 Apache Software Foundation. All Rights Reserved.">
  455. <group title="Ant Core" packages="org.apache.tools.ant*" />
  456. <group title="Core Tasks" packages="org.apache.tools.ant.taskdefs*" />
  457. <group title="Optional Tasks" packages="org.apache.tools.ant.taskdefs.optional*" />
  458. </javadoc>
  459. </target>
  460. <!--
  461. ===================================================================
  462. Compile testcases
  463. ===================================================================
  464. -->
  465. <target name="compile-tests" depends="build" if="junit.present">
  466. <mkdir dir="${build.tests}"/>
  467. <javac srcdir="${tests.dir}"
  468. destdir="${build.tests}"
  469. debug="${debug}"
  470. deprecation="${deprecation}" >
  471. <classpath refid="tests-classpath" />
  472. <exclude name="org/apache/tools/ant/taskdefs/optional/ANTLRTest.java"
  473. unless="antlr.present" />
  474. <exclude name="org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java"
  475. unless="jakarta.regexp.present" />
  476. <exclude name="org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java"
  477. unless="jakarta.oro.present" />
  478. </javac>
  479. </target>
  480. <target name="dump-info">
  481. <echo message="java.vm.info=${java.vm.info}" />
  482. <echo message="java.vm.name=${java.vm.name}" />
  483. <echo message="java.vm.vendor=${java.vm.vendor}" />
  484. <echo message="java.vm.version=${java.vm.version}" />
  485. <echo message="os.arch=${os.arch}" />
  486. <echo message="os.name=${os.name}" />
  487. <echo message="os.version=${os.version}" />
  488. <echo message="file.encoding=${file.encoding}" />
  489. <echo message="user.language=${user.language}" />
  490. </target>
  491. <!--
  492. ===================================================================
  493. Run testcase
  494. ===================================================================
  495. -->
  496. <target name="test" depends="run-tests"/>
  497. <target name="run-tests" depends="dump-info,compile-tests" if="junit.present">
  498. <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
  499. <jvmarg value="-classic"/>
  500. <classpath refid="tests-classpath"/>
  501. <sysproperty key="build.tests" value="${build.tests}"/>
  502. <formatter type="plain" usefile="false" />
  503. <batchtest>
  504. <fileset dir="${tests.dir}">
  505. <include name="**/*Test*" />
  506. <!-- abstract class, not a testcase -->
  507. <exclude name="org/apache/tools/ant/taskdefs/TaskdefsTest.java" />
  508. <exclude name="org/apache/tools/ant/util/regexp/RegexpMatcherTest.java" />
  509. <!-- these tests need to be localised before being ran???? -->
  510. <exclude name="org/apache/tools/ant/taskdefs/optional/PvcsTest.java" />
  511. <!-- these depend on order -->
  512. <exclude name="org/apache/tools/ant/taskdefs/GUnzipTest.java" />
  513. <exclude name="org/apache/tools/ant/taskdefs/GzipTest.java" />
  514. <!-- only run this test if ANTLR is installed -->
  515. <exclude name="org/apache/tools/ant/taskdefs/optional/ANTLRTest.java"
  516. unless="antlr.present" />
  517. <exclude name="org/apache/tools/ant/util/regexp/JakartaRegexpMatcherTest.java"
  518. unless="jakarta.regexp.present" />
  519. <exclude name="org/apache/tools/ant/util/regexp/JakartaOroMatcherTest.java"
  520. unless="jakarta.oro.present" />
  521. </fileset>
  522. </batchtest>
  523. <test name="org.apache.tools.ant.taskdefs.GzipTest" />
  524. <test name="org.apache.tools.ant.taskdefs.GUnzipTest" />
  525. </junit>
  526. <!-- clean up again -->
  527. <delete dir="${tests.etc.dir}/taskdefs/optional/antlr/antlr.tmp" />
  528. <delete dir="${tests.etc.dir}/taskdefs/taskdefs.tmp" />
  529. <delete dir="${tests.etc.dir}/taskdefs.tmp" />
  530. <delete file="${tests.etc.dir}/taskdefs/tmp.jar" />
  531. <delete dir="${tests.etc.dir}/types/copytest" />
  532. </target>
  533. <target name="run-single-test" if="testcase" depends="compile-tests">
  534. <junit printsummary="no" haltonfailure="yes" fork="${junit.fork}">
  535. <jvmarg value="-classic"/>
  536. <sysproperty key="build.tests" value="${build.tests}"/>
  537. <classpath refid="tests-classpath"/>
  538. <formatter type="plain" usefile="false" />
  539. <test name="${testcase}" />
  540. </junit>
  541. </target>
  542. <!--
  543. ===================================================================
  544. Main target - runs dist-lite by default
  545. ===================================================================
  546. -->
  547. <target name="main">
  548. <antcall target="dist-lite"/>
  549. </target>
  550. </project>