commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r901823 - /commons/proper/dbcp/trunk/build.xml
Date Thu, 21 Jan 2010 18:44:10 GMT
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 -->



Mime
View raw message