You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/01/21 19:44:10 UTC
svn commit: r901823 - /commons/proper/dbcp/trunk/build.xml
Author: sebb
Date: Thu Jan 21 18:44:10 2010
New Revision: 901823
URL: http://svn.apache.org/viewvc?rev=901823&view=rev
Log:
Allow for single test to be run by defining test.entry
Modified:
commons/proper/dbcp/trunk/build.xml
Modified: commons/proper/dbcp/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/build.xml?rev=901823&r1=901822&r2=901823&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/build.xml (original)
+++ commons/proper/dbcp/trunk/build.xml Thu Jan 21 18:44:10 2010
@@ -60,7 +60,6 @@
<property name="dist.dir" value="${basedir}/dist"/>
<property name="dist.jar" value="${dist.dir}/${name}.jar"/>
- <property name="test.entry" value="org.apache.commons.dbcp.TestAll"/>
<property name="test.failonerror" value="true" />
<property name="test.runner" value="junit.textui.TestRunner" />
@@ -232,7 +231,9 @@
<pathelement path="${classpath}" />
</classpath>
<formatter type="plain" usefile="true" />
- <batchtest todir="${build.dir}/ant-reports">
+ <!-- If test.entry is defined, run a single test, otherwise run all valid tests -->
+ <test name="${test.entry}" if="test.entry"/>
+ <batchtest todir="${build.dir}/ant-reports" unless="test.entry">
<fileset dir="${src.test.dir}">
<include name="**/*Test*.java"/>
<!-- Test support files -->